API Reference

Models

GET /v1/models — list available models with pricing and capabilities

GET /v1/models

Returns all available models with pricing, context window size, and capability flags. No payment required.

curl https://api.solvela.ai/v1/models

Response schema

{
  "object": "list",
  "data": [
    {
      "id": "gpt-4o",
      "object": "model",
      "provider": "openai",
      "display_name": "GPT-4o",
      "context_window": 128000,
      "pricing": {
        "input_per_million": 2.50,
        "output_per_million": 10.00,
        "currency": "USDC",
        "fee_percent": 5
      },
      "capabilities": {
        "streaming": true,
        "tools": true,
        "vision": true,
        "reasoning": false
      }
    }
  ]
}

Response fields

FieldTypeDescription
idstringThe model ID to pass in the model field of requests
objectstringAlways "model" (OpenAI-compatible discriminator)
providerstringUpstream provider: openai, anthropic, google, xai, deepseek
display_namestringHuman-readable model name
context_windowintegerMaximum tokens in the combined input + output
pricing.input_per_millionfloatProvider cost per million input tokens, in pricing.currency
pricing.output_per_millionfloatProvider cost per million output tokens, in pricing.currency
pricing.currencystringAlways "USDC" today
pricing.fee_percentintegerPlatform fee percentage (always 5)
capabilities.streamingbooleanWhether SSE streaming is available
capabilities.toolsbooleanWhether function calling / tools are supported
capabilities.visionbooleanWhether image inputs are accepted
capabilities.reasoningbooleanWhether the model performs multi-step reasoning (o3, Grok, etc.)

Available models

For a full pricing table, see Pricing.

Model IDProviderInput $/MOutput $/M
openai/gpt-5.2OpenAI$1.75$14.00
openai/gpt-4oOpenAI$2.50$10.00
openai/gpt-4o-miniOpenAI$0.15$0.60
openai/o3OpenAI$2.00$8.00
openai/o3-miniOpenAI$1.10$4.40
openai/o4-miniOpenAI$1.10$4.40
openai/gpt-4.1OpenAI$2.00$8.00
openai/gpt-4.1-miniOpenAI$0.40$1.60
openai/gpt-4.1-nanoOpenAI$0.10$0.40
openai/gpt-oss-120bOpenAI$0.00$0.00
anthropic/claude-opus-4-20250514Anthropic$5.00$25.00
anthropic/claude-sonnet-4-20250514Anthropic$3.00$15.00
anthropic-claude-sonnet-4-5Anthropic$3.00$15.00
anthropic/claude-haiku-4-5-20251001Anthropic$1.00$5.00
google/gemini-3.1-proGoogle$2.00$12.00
google/gemini-2.5-flashGoogle$0.30$2.50
google/gemini-2.5-flash-liteGoogle$0.10$0.40
google/gemini-2.0-flashGoogle$0.10$0.40
google/gemini-2.0-flash-liteGoogle$0.075$0.30
xai/grok-4-fast-reasoningxAI$0.20$0.50
xai/grok-code-fast-1xAI$0.20$1.50
xai/grok-3xAI$3.00$15.00
xai/grok-3-minixAI$0.30$0.50
deepseek/deepseek-chatDeepSeek$0.28$0.42
deepseek/deepseek-reasonerDeepSeek$0.28$0.42
deepseek/deepseek-coderDeepSeek$0.28$0.42

Note

All prices shown are provider cost before the 5% platform fee. The actual amount charged is provider_cost * 1.05.

GET /pricing

Returns the same model data in a pricing-focused format. Useful for cost estimation before making requests.

curl https://api.solvela.ai/pricing