Skip to main content
The DeepInfra Native API gives you access to every model we provide, including model types not covered by the OpenAI-compatible API: image generation, speech recognition, object detection, token classification, fill mask, image classification, zero-shot image classification, and text classification. For LLMs and embeddings, the OpenAI-compatible API is simpler and recommended. Use the native API when you need model types beyond LLMs/embeddings, or when you need features like webhooks or log probabilities. The base endpoint is:

JavaScript client

Text Generation (LLMs)

Embeddings

Image Generation

Speech Recognition

Object Detection

Token Classification

Fill Mask

Image Classification

Zero-Shot Image Classification

Text Classification

HTTP / other languages

The native API is plain HTTP — you can use it from any language (Go, C#, Java, PHP, Ruby, C++, etc.) without any SDK dependency.