OpenAItext1 rota

GPT-6.2 Sol API

OpenAI's go-to model for everyday work, from coding to running agents at scale.

gpt-6.2-solObter chave de API

Preços USD por milhão de tokens

TokensPor 1M de tokensPrompt acima de 272K
Entrada$0.47$0.9317
Entrada em cache$0.024$0.0466
Gravação em cache (5 min)$0.59$1.1646
Gravação em cache (1 hora)$0.94$1.8633
Saída$2.33$3.4937

A request whose prompt is over 272K tokens is billed at $0.9317 input and $3.4937 output per million tokens. Reasoning tokens are billed as output. Each answer's usage carries cost_usd, the amount taken from your balance; a request with no answer costs $0.00.

Requisição

curl
curl https://api.revana.si/v1/chat/completions \
  -H "Authorization: Bearer $REVANA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"gpt-6.2-sol","messages":[{"role":"user","content":"Write a haiku about routing."}]}'
Python
import os
from openai import OpenAI

client = OpenAI(base_url="https://api.revana.si/v1", api_key=os.environ["REVANA_API_KEY"])
reply = client.chat.completions.create(
    model="gpt-6.2-sol",
    messages=[{"role": "user", "content": "Write a haiku about routing."}],
)
print(reply.choices[0].message.content)

Qualquer SDK da OpenAI funciona: defina a URL base como https://api.revana.si/v1. Streaming, ferramentas e o resto estão na documentação de chat completions.

Detalhes

Id do modelo
gpt-6.2-sol
Desenvolvedor
OpenAI
Endpoint
POST /v1/chat/completions
Janela de contexto
1.05M tokens
Saída máxima
128K tokens
Streaming
Sim (server-sent events)
Rotas
1

1 rota

Uma rota hoje. Uma requisição que fica sem resposta não é cobrada.

About the GPT-6.2 Sol API

How much does the GPT-6.2 Sol API cost?

GPT-6.2 Sol costs $0.47 per million input tokens, $0.024 per million cached input tokens and $2.33 per million output tokens on Revana. A request whose prompt is over 272K tokens is billed at $0.9317 input and $3.4937 output per million tokens. You pay from prepaid credit for the tokens each request used, with no subscription or minimum.

How do I call GPT-6.2 Sol from code?

Use any OpenAI SDK with base URL https://api.revana.si/v1 and your Revana API key, and set model to "gpt-6.2-sol". POST /v1/chat/completions takes the OpenAI request body, streamed or not.

O que acontece se uma requisição falhar?

Uma requisição que fica sem resposta não custa nada.

Is GPT-6.2 Sol on Revana the same model?

Sim. A Revana repassa a sua requisição ao modelo da OpenAI sem alterações e devolve a resposta no formato da OpenAI, com o uso que ele informou e o que a requisição custou.

Mais da OpenAI

Every OpenAI model and its price

Também em markdown para agentes. Todos os modelos de linguagem e preços: llms.json.