GPT-6.2 Sol

gpt-6.2-sol
TextOpenAIGPT-6.2 Solgpt-6.2-sol

gpt-6.2-sol is the lower-cost, everyday model of GPT-6.2, while Astra targets the hardest projects; Sol nearly matches Astra on merge-ready code changes and writes with less filler. Text and image input, 1.05M-token context, 128K output, function calling; reasoning cannot be set to none.

Authentication

Base URL
https://api.dreamto.ai
Authorization
Authorization: Bearer YOUR_API_KEY
Content-Type
application/json
Model name (model)
gpt-6.2-sol

Integration protocol

Why choose this protocol

Best for existing OpenAI SDK, Chat Completions code, or unified gateway integrations.

Endpoint URL
POST/v1/chat/completions
Authorization: Bearer YOUR_API_KEYContent-Type: application/json

Request / response JSON

Request
{
  "model": "gpt-6.2-sol",
  "tools": [],
  "stream": false,
  "messages": [
    {
      "role": "user",
      "content": "Hello, world"
    }
  ],
  "max_tokens": 4096,
  "temperature": 0.7,
  "tool_choice": "auto",
  "response_format": {
    "type": "json_object"
  },
  "system_instruction": "You are a rigorous assistant."
}
Response
{
  "id": "chatcmpl_example",
  "model": "gpt-6.2-sol",
  "usage": {
    "total_tokens": 24,
    "prompt_tokens": 8,
    "completion_tokens": 16
  },
  "object": "chat.completion",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Hello, world"
      },
      "finish_reason": "stop"
    }
  ],
  "created": 1710000000
}

Request / response fields

Request fields
FieldField typeRequiredDefaultOptions / rangeDescriptionExample
messagesarrayY--OpenAI-compatible chat message array.[{"role":"user","content":"Hello, world"}]
system_instructionstringN--Used to set the role, style, and boundaries of responses.You are a rigorous assistant.
temperaturenumberN0.7-Controls randomness; lower is more stable.0.7
max_tokensintegerN--Limits the maximum output length of this response.4096
streambooleanNfalse-Whether to use a streaming response.false
response_formatobjectN--Structured output format, e.g. JSON object.{"type":"json_object"}
toolsarrayN--OpenAI tools/function calling definitions.[]
tool_choicestringN--auto, none, or a specific tool.auto
Response fields
FieldField typeRequiredDefaultOptions / rangeDescriptionExample
idstringN--Response identifier for this request.chatcmpl_example
modelstringN--Name of the model that actually responded.gpt-6.2-sol
choices[].message.contentstringN--The main text content generated by the model.Hello, world
usage.prompt_tokensintegerN--Number of tokens consumed by the request input.8
usage.completion_tokensintegerN--Number of tokens consumed by the model's output.16
usage.total_tokensintegerN--Total tokens for input and output combined.24
objectstringN---chat.completion
createdintegerN---1710000000
choicesarrayN---[{"index":0,"message":{"role":"assistant","content":"Hello, world"},"finish_reason":"stop"}]
choices[]objectN---{"index":0,"message":{"role":"assistant","content":"Hello, world"},"finish_reason":"stop"}
choices[].indexintegerN---0
choices[].messageobjectN---{"role":"assistant","content":"Hello, world"}
choices[].message.rolestringN---assistant
choices[].finish_reasonstringN---stop
usageobjectN---{"total_tokens":24,"prompt_tokens":8,"completion_tokens":16}

Code examples

cURLrequest.sh
curl -X POST "https://api.dreamto.ai/v1/chat/completions" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "gpt-6.2-sol",
  "messages": [
    {
      "content": "Hello, world",
      "role": "user"
    }
  ],
  "system_instruction": "You are a rigorous assistant.",
  "temperature": 0.7,
  "max_tokens": 4096,
  "stream": false,
  "response_format": {
    "type": "json_object"
  },
  "tools": [],
  "tool_choice": "auto"
}'