OpenAI Chat

GPT 6.0 Sol

gpt-6-sol
Đầu vào Văn bản Ảnh Đầu ra Văn bản

Thông số

Nhà cung cấp
OpenAI
Loại
Chat
Đầu vào
Văn bản, Ảnh
Đầu ra
Văn bản
Ngữ cảnh
272K
Output tối đa
128K
Định dạng API
Chat Completions, Responses

Giá

MụcVNĐCreditĐơn vị
Input~55.000đ55.000 credit/ 1M token
Output~275.000đ275.000 credit/ 1M token
Đọc bộ nhớ đệm~5.500đ5.500 credit/ 1M token
Ghi bộ nhớ đệm~68.750đ68.750 credit/ 1M token

1 credit = 1đ. Credit trừ theo usage thực tế sau mỗi request. Xem bảng giá và gói nạp

Bắt đầu nhanh

  1. Tạo API key tại trang API key (cần đăng ký trước).
  2. Lưu key vào biến môi trường WIROUTER_API_KEY.
  3. Gọi API với base URL https://api.wirouter.store/v1 và model gpt-6-sol.
Terminal
export WIROUTER_API_KEY="your-api-key"
curl -s https://api.wirouter.store/v1/models -H "Authorization: Bearer $WIROUTER_API_KEY"

Gọi API

Chat Completions POST /v1/chat/completions

curl -s https://api.wirouter.store/v1/chat/completions \
  -H "Authorization: Bearer $WIROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  --data @- <<'EOF'
{
  "model": "gpt-6-sol",
  "messages": [
    {
      "role": "user",
      "content": "Giới thiệu ngắn gọn về WiRouter trong 2 câu."
    }
  ]
}
EOF

Responses POST /v1/responses

curl -s https://api.wirouter.store/v1/responses \
  -H "Authorization: Bearer $WIROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  --data @- <<'EOF'
{
  "model": "gpt-6-sol",
  "input": "Giới thiệu ngắn gọn về WiRouter trong 2 câu."
}
EOF

Gửi ảnh

Ví dụ đọc ảnh từ file photo.jpg. Ví dụ URL dùng ảnh mẫu có sẵn.

Chat Completions · ảnh base64 POST /v1/chat/completions

IMG=$(base64 < photo.jpg | tr -d '\n')
curl -s https://api.wirouter.store/v1/chat/completions \
  -H "Authorization: Bearer $WIROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  --data @- <<EOF
{
  "model": "gpt-6-sol",
  "messages": [
    {
      "role": "user",
      "content": [
        {
          "type": "text",
          "text": "Mô tả bức ảnh này trong một câu."
        },
        {
          "type": "image_url",
          "image_url": {
            "url": "data:image/jpeg;base64,${IMG}"
          }
        }
      ]
    }
  ]
}
EOF

Chat Completions · ảnh qua URL POST /v1/chat/completions

curl -s https://api.wirouter.store/v1/chat/completions \
  -H "Authorization: Bearer $WIROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  --data @- <<'EOF'
{
  "model": "gpt-6-sol",
  "messages": [
    {
      "role": "user",
      "content": [
        {
          "type": "text",
          "text": "Mô tả bức ảnh này trong một câu."
        },
        {
          "type": "image_url",
          "image_url": {
            "url": "https://wirouter.store/static/img/docs-sample.jpg"
          }
        }
      ]
    }
  ]
}
EOF

Responses · input_image POST /v1/responses

IMG=$(base64 < photo.jpg | tr -d '\n')
curl -s https://api.wirouter.store/v1/responses \
  -H "Authorization: Bearer $WIROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  --data @- <<EOF
{
  "model": "gpt-6-sol",
  "input": [
    {
      "role": "user",
      "content": [
        {
          "type": "input_text",
          "text": "Mô tả bức ảnh này trong một câu."
        },
        {
          "type": "input_image",
          "image_url": "data:image/jpeg;base64,${IMG}"
        }
      ]
    }
  ]
}
EOF

Dùng với công cụ

Claude Code
export ANTHROPIC_BASE_URL="https://api.wirouter.store"
export ANTHROPIC_AUTH_TOKEN="$WIROUTER_API_KEY"
claude --model claude-fable-5-dd-los-6-tpg
Codex CLI (~/.codex/config.toml)
model_provider = "wirouter"
model = "gpt-6-sol"

[model_providers.wirouter]
name = "WiRouter"
base_url = "https://api.wirouter.store/v1"
wire_api = "responses"
env_key = "WIROUTER_API_KEY"
Cursor / Cline / OpenWebUI
Base URL: https://api.wirouter.store/v1
API key: $WIROUTER_API_KEY
Model: gpt-6-sol

Lỗi thường gặp

401
API key sai, đã bị thu hồi hoặc tài khoản hết credit. Kiểm tra key và số dư.
429
Model tạm hết quota hoặc đang cooldown. Thử lại sau số giây trong header Retry-After.
400
Request không hợp lệ, thường do sai model ID. Dùng đúng ID gpt-6-sol.
524
Request chạy quá 100 giây nên bị cắt. Dùng stream hoặc rút gọn yêu cầu.