POST
$0.0011 default
/v1/chat/completionsDescription
Multi-model chat completions. POST messages[] and set model to any LLM id from GET /v1/models; dynamic USDC pricing scales with model and token usage. Hero: GET /heroes/chat-completions.
Pricing
$0.0011 default
Request schema
{
"additionalProperties": true,
"properties": {
"max_tokens": {
"type": "integer"
},
"messages": {
"items": {
"type": "object"
},
"type": "array"
},
"model": {
"type": "string"
}
},
"required": [
"messages"
],
"type": "object"
}Example response
{
"choices": [
{
"finish_reason": "stop",
"index": 0,
"message": {
"content": "Hello!",
"role": "assistant"
}
}
],
"id": "chatcmpl-example",
"object": "chat.completion"
}