Skip to main content
POST
openrouter_chat

Authorizations

X-API-Key
string
header
required

Your fetchbean API key (fb_…). Keys are not accepted through Authorization.

Headers

Idempotency-Key
string

A caller-generated key for safely retrying this execution after a network failure. Reusing the same key with the same operation and input returns the original result; reusing it for a different call is rejected.

Body

application/json
model
string
required

e.g. openai/gpt-5.6, anthropic/claude-opus-5, deepseek/deepseek-v4-flash

messages
object[]
required

OpenAI chat format: [{ role, content }]

Response

Success

The response is of type object.