dockPI
← Back

Large Language Models, Multimodal AI, Image Generation, Speech and Embeddings

OpenAI API

The OpenAI API gives developers programmatic access to AI models for text generation, reasoning, coding, image understanding, speech processing, image generation and semantic search. It supports building AI-powered applications through hosted inference endpoints without managing model infrastructure.

Key features

  • Responses API for text and multimodal generation
  • Tool and function calling for application integrations
  • Structured outputs using JSON schemas
  • Text embedding models for semantic search and retrieval
  • Image generation and editing through supported models
  • Speech-to-text, text-to-speech and realtime audio capabilities
  • Batch processing for eligible asynchronous workloads
  • Streaming responses and prompt caching on supported models

Pricing

  • Usage-based pricing in USD. Text models are generally billed separately for input, cached input and output tokens, typically per 1 million tokens. Image generation, audio processing, realtime sessions and other tools have separate model-specific or usage-based charges. Batch processing may offer discounted rates on eligible workloads. For current model-specific rates, consult the official pricing page. ChatGPT subscriptions do not include API usage. Free API production usage should not be assumed; billing eligibility and any promotional credits depend on the account.

Best use cases

  • Customer support assistants for SaaS and e-commerce businesses
  • Document extraction and summarization for business applications
  • AI coding assistants and developer productivity tools
  • Voice-enabled applications and transcription workflows
  • Semantic search and retrieval-augmented generation
  • Image generation for creative applications

Authentication method

API keys are supplied using the HTTP Authorization: Bearer header. Project-scoped keys and service accounts support application-level credential management. Keys should remain on trusted servers and must not be embedded in publicly accessible frontend code.

Similar APIs