API reference
Three endpoints. OpenAI-compatible JSON.
OpenAPI JSON/v1/chat/completionsCreate a streaming or non-streaming chat completion.
/v1/images/generationsGenerate an image with an enabled model.
/v1/modelsList the models available to the current key.
Error object
Every gateway error contains a message, type, and stable code.
{
"error": {
"message": "The concurrent request limit was reached.",
"type": "gateway_error",
"code": "concurrency_limit_exceeded"
}
}