POST
$0.0011 default
/x402/v1/models/gpt-4.1-mini/chat/completionsDescription
gpt-4.1-mini: OpenAI GPT 4.1 Mini chat completions, paid per call in USDC. Per 1M tokens in/out: Standard (default) 0.4/1.6, Fast 0.7/2.8; pick with service_tier. Plus $0.0005 (Base) or $0.0005 (Solana) per call; the quote charges input plus 10% of max_tokens. Empty answers are free. Rates: https://openai.mm.family/x402/pricing
Pricing
$0.0011 default
Request schema
{
"properties": {
"max_tokens": {
"type": "integer"
},
"messages": {
"items": {
"properties": {
"content": {
"type": "string"
},
"role": {
"type": "string"
}
},
"required": [
"role",
"content"
],
"type": "object"
},
"type": "array"
},
"model": {
"enum": [
"gpt-4.1-mini"
],
"type": "string"
},
"reasoning_effort": {
"type": "string"
},
"response_format": {
"type": "object"
},
"service_tier": {
"enum": [
"flex",
"default",
"standard",
"auto",
"fast",
"priority"
],
"type": "string"
},
"stream": {
"type": "boolean"
},
"tools": {
"type": "array"
}
},
"required": [
"messages"
],
"type": "object"
}Example response
{
"choices": [
{
"finish_reason": "stop",
"index": 0,
"message": {
"content": "Hello",
"refusal": null,
"role": "assistant"
}
}
],
"id": "chatcmpl-x",
"model": "gpt-4.1-mini",
"object": "chat.completion",
"service_tier": "default",
"usage": {
"completion_tokens": 1,
"prompt_tokens": 8,
"total_tokens": 9
}
}