Chat
Send messages to any of 160+ open models and get the reply, streamed or whole. OpenAI's exact shape.
POST /v1/chat/completions
- Price
- Priced per model: the model's price per 1M tokens, listed on the Models page: the provider's price plus 8%.
- Freshness
- Computed fresh on every call.
- Answer
- OpenAI’s own shape for this endpoint, so existing clients work unchanged. No envelope.
Parameters
| Name | Type | Required | What it is | Example |
|---|---|---|---|---|
| modelbody | string | yes | Which model answers. Any id from the Models page; `crypto2api/free` is free. | crypto2api/free |
| messagesbody | object | yes | The conversation so far, as OpenAI messages. | [{"role":"user","content":"Say hello in five words."}] |
| streambody | boolean | no, default false | Stream the answer as it is written. | false |
Try it
A real call. Your first 100 priced calls a day are free; after that it costs the price above. Edit anything and run it.
Response
Example answer, in OpenAI’s shape
{
"id": "gen-1795893758-VP3kf6oepFiHglUup7Bd",
"object": "chat.completion",
"created": 1795893758,
"model": "crypto2api/free",
"choices": [
{
"index": 0,
"finish_reason": "stop",
"message": {
"role": "assistant",
"content": "Hello, how are you today?"
}
}
],
"usage": {
"prompt_tokens": 16,
"completion_tokens": 8,
"total_tokens": 24,
"cost": 0
}
}What the example answered when this page was built, shortened. Run it for a live answer.
Copy it
Runs as-is with your key in place of c2a_your_key. The MCP block gives an agent every endpoint in one server.
curl https://api.crypto2api.com/v1/chat/completions \
-H "Authorization: Bearer c2a_your_key" \
-H "Content-Type: application/json" \
-d '{
"model": "crypto2api/free",
"messages": [
{
"role": "user",
"content": "Say hello in five words."
}
],
"stream": false
}'