翻篇收录说明
翻篇网页快照

GPT-6.1 Sol API, Pricing & Playground | Vercel AI Gateway

https://vercel.com/ai-gateway/models/openai/gpt-6.1-sol

最近抓取:2026-12-04 03:49:37(北京时间)

最近内容变化:2026-12-04 03:49:37(北京时间)

这是最近一次有效抓取的文本快照,不含网页脚本、图片和动态交互内容。实际网页可能已更新。

访问原网页

页面简介

Explore the GPT-6.1 Sol AI model by OpenAI on Vercel AI Gateway

正文摘录

GPT-6.1 Sol is OpenAI's reasoning model for complex coding, computer use, and professional work. It accepts text and images, generates text, and supports a 1,050,000-token context window with up to 128,000 output tokens. Configurable reasoning effort, structured outputs, prompt caching, and Responses API tools support multi-step workflows. Your use is subject to OpenAI's Terms & Privacy Policies.View API referenceInput and output pricePrices from: Input $2, Output $10, Per 1M tokens24h uptimeLoading AI Gateway uptimeGet API keyRead the docsAPIClaude CodeCodexHermesCommand CodeOpenClawfxAI SDKChat CompletionsMessagesResponsesAI SDKChat CompletionsMessagesResponsesTypeScriptPythonimport { streamText } from 'ai' const result = streamText({ model: 'openai/gpt-6.1-sol', prompt: 'Why is the sky blue?'})Copy for agentRead docsOverviewPlaygroundProvidersUptimeStatusThroughputLatencyAPISimilarGPT-6.1 SolGPT-6.1 SolExplain quantum computing in simple termsWrite a haiku about the oceanWhat are the tradeoffs of TypeScript vs JavaScript?Checking availability for your teamColumns (16)ProviderContextMax OutputLatencyThroughputCache HitInputOutputCacheSearchCapabilitiesSelf-reported ZDRNo TrainingHeadquartersRegional InferenceFree CreditRelease DateOpenAILegal:Terms•Privacy1.1M128K1.4 s54 tps91%$2/M+6 more$10/M+6 moreRead$0.10/MWrite$2.50/M$10/K+5United States09/29/2026BedrockLegal:Terms•Privacy1.1M128K4.8 s115 tps87%$2/M+2 more$10/M+2 moreRead$0.10/MWrite$2.50/M—+4United States09/29/2026AzureLegal:Terms•Privacy1.1M128K1.1 s62 tps—$2/M+1 more$10/M+1 moreRead$0.10/MWrite$2.50/M$14/K+5United States—09/29/20261W1D1HGetting startedCall GPT-6.1 Sol through AI Gateway with the AI SDK generateText and streamText functions, or through the OpenAI Chat Completions, OpenAI Responses, and Anthropic Messages APIs by changing the base URL. AI Gateway authenticates the request and routes it to an available provider.Install the AI SDK (pnpm add ai dotenv), create an API key from the API Keys page, and set it as AI_GATEWAY_API_KEY in your environment. Full setup is covered in the text generation quickstart.index.tsimport { generateText } from 'ai';import 'dotenv/config'; async function main() { const result = await generateText({ model: 'openai/gpt-6.1-sol', prompt: 'Why is the sky blue?', }); console.log(result.text);} main().catch(console.error);Top-level parametersThe same GPT-6.1 Sol request in each API format AI Gateway supports.AI SDK v7Chat CompletionsResponses APIMessages APItop-level-params.tsimport { generateText } from 'ai';import 'dotenv/config'; async function main() { const result = await generateText({ model: 'openai/gpt-6.1-sol', system: 'You are a concise technical assistant.', prompt: 'Summarize the tradeoffs between static generation and SSR.', maxOutputTokens: 1024, }); console.log(result.text);} main().catch(console.error);Standard parameters like prompt, messages, temperature, and tools work as documented in the AI SDK docs. These are the parameters with model-specific behavior.ParameterTypeRequiredDescriptionmodelstringYesModel ID in the form creator/model, e.g. openai/gpt-6.1-sol. AI Gateway routes the request to an available provider.maxOutputTokensnumberNoHard cap on generated tokens. GPT-6.1 Sol supports up to 128,000 output tokens. Reasoning tokens count toward this limit.reasoning'provider-default' | 'none' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh'NoProvider-agnostic reasoning effort, available in AI SDK 7 or later. Maps to the provider’s native reasoning configuration; reasoning settings under providerOptions take precedence when both are set. See the Reasoning section below.providerOptionsRecord<string, JSONValue>NoAI Gateway routing options under gateway, plus any provider-native options under the provider’s own namespace — see the table below.Input limitsInputFormatsSourcesMax countMax sizeLimitsText————Prompt and response share the 1.1M-token context windowImage—URL, base64, Uint8Array——Sent as image parts in messages; counts as input tokensPDF—URL, base64, Uint8Array——Sent as file parts in messages; counts as input tokensProvider optionsSet AI Gateway routing options under providerOptions.gateway. For provider-specific options, pass them under the provider’s namespace as documented by the AI SDK.Learn more in the AI SDK openai provider docs.provider-options.tsimport { generateText } from 'ai';import 'dotenv/config'; async function main() { const result = await generateText({ model: 'openai/gpt-6.1-sol', prompt: 'Why is the sky blue?', providerOptions: { gateway: { only: ['openai', 'bedrock'], }, }, }); console.log(result.text);} main().catch(console.error);These AI Gateway routing options apply to every model. Provider-specific options pass through under the provider’s own namespace (for example providerOptions.anthropic) exactly as documented by the AI SDK.ParameterTypeRequiredDescriptionproviderOptions.gateway.onlystring[]NoRestrict routing to these provider slugs. Requests fail over only within the listed providers.providerOptions.gateway.orderstring[]NoPreferred provider order. Listed providers are tried first; unlisted providers remain available as fallbacks.providerOptions.gateway.sort'cost' | 'ttft' | 'tps'NoRank candidate providers by price, time to first token, or tokens per second instead of the default routing order.providerOptions.gateway.zeroDataRetentionbooleanNoRoute only to providers with a zero-data-retention policy for this model.Routing across providersAI Gateway serves the same model through multiple providers and fails over automatically. order expresses a preference while keeping every provider eligible; only is a hard allowlist — if none of the listed providers are available the request fails instead of falling back.Options under a provider's own namespace (for example providerOptions.anthropic) are forwarded to that provider with the request. Providers ignore option namespaces that don't apply to them, so it is safe to set provider options alongside gateway routing options.ReasoningAI Gateway bridges reasoning across every API format. The AI SDK exposes a provider-agnostic top-level reasoning level (none, minimal, low, medium, high, or xhigh); the Chat Completions and Responses formats take the same effort under reasoning.effort; and the Anthropic Messages format uses a native thinking token budget. Whichever you send, the gateway maps it to the target model’s native configuration, converting between effort levels and token budgets as needed. Reasoning-related settings under providerOptions take full precedence over the top-level reasoning value and are never merged. Reasoning tokens typically count toward your output-token usage, though how they’re reported and billed varies by provider.Learn more in the AI Gateway reasoning guide.AI SDK v7Chat CompletionsResponses APIMessages APIreasoning.tsimport { generateText } from 'ai';import 'dotenv/config'; async function main() { const result = await generateText({ model: 'openai/gpt-6.1-sol', prompt: 'Explain the Monty Hall problem step by step.', reasoning: 'high', }); console.log(result.text);} main().catch(console.error);Image inputSend images alongside text as message parts. Images count as input tokens.image-input.tsimport { generateText } from 'ai';import 'dotenv/config'; async function main() { const result = await generateText({ model: 'openai/gpt-6.1-sol', messages: [ { role: 'user', content: [ { type: 'text', text: 'Describe this image.' }, { type: 'image', image: 'https://example.com/photo.jpg' }, ], }, ], }); console.log(result.text);} main().catch(console.error);PDF inputAttach PDFs as file parts. Their contents count as input tokens.pdf-input.tsimport { generateText } from 'ai';import 'dotenv/config'; async function main() { const result = await generateText({ model: 'openai/gpt-6.1-sol', messages: [ { role: 'user', content: [ { type: 'text', text: 'Summarize this document.' }, { type: 'file', mediaType: 'application/pdf', data: 'https://example.com/document.pdf', }, ], }, ], }); console.log(result.text);} main().catch(console.error);Tool callingExpose tools the model can call. Define each tool’s inputs with a Zod schema.tool-calling.tsimport { generateText, tool } from 'ai';import { z } from 'zod';import 'dotenv/config'; async function main() { const result = await generateText({ model: 'openai/gpt-6.1-sol', prompt: 'What is the weather in San Francisco?', tools: { getWeather: tool({ description: 'Get the current weather for a location', inputSchema: z.object({ location: z.string() }), execute: async ({ location }) => ({ location, temperatureC: 18 }), }), }, }); console.log(result.text);} main().catch(console.error);Fast modeGPT-6.1 Sol can run in fast mode for lower latency by appending -fast to the model ID.fast-mode.tsimport { generateText } from 'ai';import 'dotenv/config'; async function main() { const result = await generateText({ model: 'openai/gpt-6.1-sol-fast', prompt: 'Why is the sky blue?', }); console.log(result.text);} main().catch(console.error);AllTextCodeEmbedAll Use CasesColumns (13)ModelContextLatencyThroughputInputOutputCacheSearchCapabilitiesProvidersSelf-reported ZDRNo TrainingFree CreditRelease Dateopenai/gpt-6.2-sol1.1M1.1 s147 tps$2/M+2 more$10/M+2 moreRead$0.10/MWrite$2.50/M$10/K+511/17/2026openai/gpt-6.2-astra1.1M1.3 s60 tps$8/M+2 more$40/M+2 moreRead$0.40/MWrite$10/M$10/K+511/17/2026openai/gpt-6.1-terra1.1M1.6 s161 tps$1/M+2 more$5/M+2 moreRead$0.05/MWrite$1.25/M$10/K+510/26/2026openai/gpt-6-luna1.1M0.6 s170 tps$0.10/M+2 more$0.50/M+2 moreRead$0.01/MWrite$0.13/M$10/K+509/22/2026openai/gpt-5.6-luna1.1M0.5 s222 tps$0.20/M+2 more$1.20/M+2 moreRead$0.02/MWrite$0.25/M$10/K+607/09/2026openai/text-embedding-3-small—$0.02/M—01/25/2024