API overview

InOneAPI routes the exact public model ID to an available provider. Copy IDs from model detail or the model list; do not prepend provider names. Input, output and streaming formats differ between protocols, and optional features depend on model and mapping support.

Base URLs

HTTP and OpenAI SDK base: https://api.inoneapi.com/v1. Anthropic SDK base: https://api.inoneapi.com; the SDK appends /v1/messages. Use an InOneAPI key as described in Authentication.

Endpoints

EndpointReference
GET /v1/modelsModels accessible to this key
POST /v1/chat/completionsChat Completions
POST /v1/responsesResponses
POST /v1/messagesMessages
POST /v1/messages/count_tokensCount input tokens
POST /v1/images/generationsImage generation
POST /v1/videosCreate video task
GET /v1/videos/{id}?model=…Retrieve video task
POST /v1/audio/speechSpeech
POST /v1/filesUpload file
GET /v1/filesList files
GET /v1/files/{file_id}File metadata
DELETE /v1/files/{file_id}Delete file

Requests and results

YOUR_MODEL_ID is a placeholder; model detail examples already contain the selected ID. Optional app headers are commented out. Check HTTP status before parsing JSON; successful speech is binary, and video requires polling the saved task ID. HTTP 200 does not establish asynchronous completion.

Record X-Gateway-Trace-ID. File operations do not incur model inference charges; reference files using the uploading key. See Files.

Compatibility boundaries

No generic Batch, Embeddings, Realtime, transcription/translation, Responses retrieval/deletion, video cancellation, or file-content download endpoint is exposed. A method existing in an SDK does not establish gateway support. callback_url requires upstream and mapping support; there is no generic gateway callback service.

Quickstart · SDKs · Streaming · Errors

Documentation · InOneAPI