What is the Inference API?
The Inference API gives you access to hundreds of AI models through a single, consistent interface. Generate text, images, and videos without managing infrastructure or juggling multiple provider SDKs. Capabilities:- Text Generation: Chat completions, tool calling, vision, audio, documents (PDFs), structured output
- Image Generation: Text-to-image, image-to-image editing
- Video Generation: Text-to-video, image-to-video, reference-to-video, video-to-video editing
Where to find things
Quick Starts
Chat
Text generation in minutes
Images
Text-to-image in minutes
Videos
Text-to-video in minutes
Async Queue
Generate in background
API Reference
Chat Completions
Text generation, vision, audio, documents, tool calling, prompt caching
Image Generation
Text-to-image generation
Image Editing
Edit images with text prompts
Video Generation
Text-to-video, image-to-video, multi-shot
Async Queue
Background image/video generation
Models
List, search, and manage models
Individual Model API References
Browse per-model API references
Sample requests, parameter tables, and workbench links for every model.
Individual Model Walkthroughs
Kling O3 Pro: Reference to Video
Multi-shot with references
Kling O3 Pro: Video to Video Edit
Text-guided video edits
Seedance 2.0: Reference to Video
Mixed-reference video
Topaz Starlight Precise 2.5
Upscale and restore to 4K
Authentication
All requests require a bearer token:Base URL
All inference endpoints live under:https://hub.oxen.ai/api/ai. The SDK appends /chat/completions automatically.
Endpoints
Common Parameters
These parameters are accepted across multiple endpoints:Discovering Models
List all models, optionally filtered by developer:request_schema field with the complete parameter definitions, types, defaults, and constraints for that model.
Verified Models
A verified model is one whose provider has signed a contract with Oxen that stops them from using what you send through Oxen to train or improve their models. An unverified model falls under the provider’s own terms and privacy policy, which may let them train on your data. The Verified Models page lists every model in each group and has the full terms. Each model in/api/ai/models has a verified field that says which group it’s in, and a license_type field that names its license. To list only verified models:
Pricing
Pricing varies by model:
Check the model detail endpoint for exact pricing. Relevant fields:
input_cost_per_token, output_cost_per_token, cost_per_image, cost_per_second, cost_per_second_with_audio, cost_per_second_high_res.
Error Format
Errors use one of two formats:unauthenticated, invalid_params, resource_not_found, unknown_error.
Need help? Join our Discord community.