English
  • 中文
  • English
English
  • 中文
  • English
官网
服务状态
English
  • 中文
  • English
  1. Text Models
  • Quickstart & Conventions
  • Images
    • GPT Image 2 / 2.5 / 2.6 Generation & Editing
    • Nano Banana Image Generation
    • Gemini Native Sync Image Generation
    • Seedream 5.0 Pro / 5.5 Image Generation
    • Midjourney Image Generation
  • Videos
    • Seedance 2 Video Generation
    • Omni Video Generation
    • Seedance 2.5 Video Generation
    • MiniMax H3 Video Generation
    • WAN 3.0 Video Generation
    • Muse Video Generation
    • Seedance Asset Registration
    • Gemini Omni 1.2 Flash Video Generation
    • Seedance Volcengine Native Video Generation
    • MAGI-2 Video Generation
  • Text Models
    • Claude Desktop (CC Switch) Setup Guide
    • Codex in ChatGPT Desktop Setup Guide
    • Gemini Text Models (Native Format)
    • Text & Chat APIs (OpenAI / Claude)
  • Audio
    • Gemini Text-to-Speech (TTS)
  1. Text Models

Text & Chat APIs (OpenAI / Claude)

Brioi supports both OpenAI-compatible formats (Responses and Chat Completions) and the native Anthropic Claude format (Messages). Use each model family's native endpoint to preserve reasoning traces, prompt caching, and tool-calling capabilities:
Model FamilyRecommended EndpointWhy
GPT series, Kimi, GLM, GrokPOST /v1/responses or POST /v1/chat/completionsNative support for reasoning controls, tool calling, and context compaction
Claude seriesPOST /v1/messagesFull support for extended thinking (thinking), Prompt Caching (cache_control), and anthropic-beta
Gemini seriesGemini Text Models (Native Format)Full support for thinkingConfig, responseSchema, and thoughtSignature
Available models and group permissions depend on the live GET /v1/models response for your API key. Image, video, and TTS models cannot be called through the text endpoints on this page.

Base URL & Authentication#

Client / SDKBase URLAuthentication
Official OpenAI SDK / compatible clientshttps://vip.brioi.com/v1Authorization: Bearer YOUR_API_KEY
Official Anthropic SDK / Claude Codehttps://vip.brioi.com (do not append /v1)x-api-key: YOUR_API_KEY or Authorization: Bearer YOUR_API_KEY
Raw HTTP / cURLhttps://vip.brioi.com + full path belowSame as the corresponding endpoint

OpenAI Responses API (Recommended for GPT)#

POST https://vip.brioi.com/v1/responses is built for latest-generation GPT reasoning and coding models (such as gpt-6.2-sol, gpt-6.1-sol, and gpt-6-astra), supporting stateful multi-turn continuation, structured outputs, and function tools.
Streaming: Pass "stream": true in the request body to receive a standard SSE event stream.
Context compaction: Supports POST https://vip.brioi.com/v1/responses/compact for long-session coding agents such as Codex to compact conversation history.

OpenAI Python SDK Example#

OpenAI Chat Completions API#

POST https://vip.brioi.com/v1/chat/completions is compatible with general AI apps, translation plugins, and IDE coding assistants.

Anthropic Native Messages API#

POST https://vip.brioi.com/v1/messages implements the Anthropic Messages specification. Authenticate with x-api-key: YOUR_API_KEY (paired with anthropic-version: 2023-06-01) or Authorization: Bearer YOUR_API_KEY; max_tokens is required.
Extended thinking & beta headers: Supports standard Anthropic thinking, explicit Prompt Caching (cache_control), and anthropic-beta request headers.
Token groups: For coding workflows and Claude Code, choose Claude | CCMAX | 满血 (full-capability CCMAX), Claude|Kiro|满血 (full-capability Kiro), Claude | Kiro | 特价 (discounted Kiro), or auto. The Claude|对话 (chat-only) group is intended strictly for conversational bots and chat plugins and does not support coding tool calls.

Anthropic Python SDK Example#

Using with Claude Code (CLI)#

Create an API key on the Brioi API Keys page under Claude | CCMAX | 满血, Claude|Kiro|满血, or auto, then configure Claude Code using either option:
1.
One-click import via CC Switch: Open the action menu on the right side of your key row, choose CC Switch, select Claude as the target app, and import and activate the profile.
2.
Write ~/.claude/settings.json directly:
{
  "env": {
    "ANTHROPIC_BASE_URL": "https://vip.brioi.com",
    "ANTHROPIC_AUTH_TOKEN": "YOUR_API_KEY"
  }
}
Do not append /v1 to ANTHROPIC_BASE_URL. To configure the Claude Desktop app, see the Claude Desktop (CC Switch) Setup Guide.

Common Errors#

HTTP StatusCommon Cause & Resolution
400Invalid JSON payload or parameters (for example, omitting max_tokens on /v1/messages, or passing an image/video model ID to a chat endpoint).
401Missing, invalid, or disabled API key.
403Insufficient account balance or key quota, or the API key's group does not include the target model.
404Malformed endpoint path—most commonly setting https://vip.brioi.com/v1 in the Anthropic SDK (resulting in /v1/v1/messages) or omitting /v1 in the OpenAI SDK.
429Rate limit exceeded; retry with exponential backoff.
503Service temporarily unavailable.
500, 502Transient upstream error; if a streaming response drops mid-flight, inspect the X-Oneapi-Request-Id header for diagnostics.
Modified at 2026-12-04 09:01:17
Previous
Gemini Text Models (Native Format)
Next
Gemini Text-to-Speech (TTS)
Built with