OpenAI

Model

API for GPT language, image and audio models

Fiyat
Pay per use
Erişim
API key

Hakkında

API for OpenAI's GPT models, with image generation, speech, transcription, realtime voice and embeddings. Usage is billed per token. gpt-6-astra has a 1.05M-token context window and costs $10 in and $50 out per 1M tokens, or $20 and $75 for prompts over 272K input tokens.

Neler yapabilirsin

  • Generate text, code and structured JSON with GPT models
  • Generate and edit images from text prompts with GPT Image
  • Transcribe speech and turn text into spoken audio

Başlarken

  1. Create an API key in the dashboard
  2. Export it as OPENAI_API_KEY

Örnek kod

curl https://api.openai.com/v1/responses \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -d '{
    "model": "gpt-6-astra",
    "input": "Write a one-sentence bedtime story about a unicorn."
  }'

Ayrıntılar

Barındırma
Hazır hizmet (bulut)
Kullanılabildiği yerler
Tüm dünya
Resmi SDK'lar
Python, JavaScript/TypeScript, C#, Java, Go, Ruby
MCP sunucusu
Yok

Görevler

Alternatifler

Aynı görevler için başka araçlar.

Son kontrol: .