Skip to main content
Send messages to POST https://api.apione.ai/v1/chat/completions using the OpenAI-compatible chat format. Verify a minimal request before adding model-specific parameters.

Send a request

Set APIONE_API_KEY and APIONE_MODEL using the quickstart. Copy the model ID from the available model list and check the key’s permissions and billing group.
For multi-turn conversations, your application sends the necessary history in messages. Do not assume the next request automatically carries the previous context. For SDK examples, see Python and Node.js.

Common request fields

Recheck parameters when switching models. For unsupported parameters, remove optional fields and verify the minimal request before restoring them individually.

Read the response

A text response has the following shape. Values are illustrative:
When finish_reason is length, check output limits and whether the content is complete; truncated JSON cannot be used directly for downstream business. Tool calls and JSON validation: see structured output and tools; continuous incremental reception: see streaming. See the APIONE Chat reference for complete fields and troubleshooting for failed calls.