OpenAI

Model

API for GPT language, image and audio models

Price
Pay per use
Access
API key

About

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.

What you can do with it

  • 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

Get started

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

Example

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."
  }'

Details

Hosting
Hosted service
Available in
Worldwide
Official SDKs
Python, JavaScript/TypeScript, C#, Java, Go, Ruby
MCP server
None

Tasks

Alternatives

Other tools for the same tasks.

Last checked on .