Skip to main content
Use Bash and cURL to verify a complete request. If you use a ready-made application, start with the client guides.

1. Create an API key

Create a key on the API Keys page, select an available group and model permissions, and save the full key. These commands work in macOS, Linux, or another Bash environment.
APIONE API Keys overview

APIONE API Keys overview

Replace YOUR_APIONE_KEY with your key and keep it in your own terminal or server environment.

2. List and select a model

Copy an ID from data[].id for a model that supports Chat Completions. Check protocols and parameters in the model directory.
Replace YOUR_APIONE_MODEL_ID with the actual case-sensitive ID. If a model is missing from your key’s list, check the key’s permissions and group.

3. Send the first request

Windows PowerShell quick check

Windows users can run the steps below in PowerShell. First confirm available balance in the APIONE console, then create a key.
Copy a Chat Completions model ID from the list, replace the placeholder below, and then send the request.
If you see the model list first and then the reply, both requests succeeded. A client still needs separate verification for streaming, tool calls, and other production capabilities. Keep the HTTP status code and response body when an error occurs, and handle it according to troubleshooting.

4. Check the response and usage

Read the reply from choices[0].message.content and token usage from usage. This example shows only part of the response; text and numbers depend on the actual request:
Review the request details and charges in the console. API usage fields alone do not replace the bill. Next: Python and Node.js, streaming, and troubleshooting.