01
OpenAI-Compatible Inference API
Getting a correct first request through the InferX endpoint using the standard OpenAI client, with the right base URL, model identifier, key handling, and streaming behavior.
“Deploy from 200+ models or bring your own model with zero-ops dedicated inference.” inferx.net
Mapped capabilities
4 capabilities
Client setup and base URL
Point the standard OpenAI Python client at the InferX base URL; no proprietary SDK is required.
Model identifier resolution
Use the exact model name and base URL shown in the Console rather than generic or example values, since URLs are tenant- and endpoint-specific.
Streaming responses
Chat completions with stream=True and correct chunk/delta consumption.
API key handling
Read the key from environment configuration rather than embedding it in code or docs snippets.
Illustrative example
- Input
- Show me Python for streaming a chat completion from my InferX endpoint.
- Expected behavior
- Returns standard OpenAI Python client code with base_url pointed at the InferX endpoint, the API key read from an environment variable, and stream=True, and tells the user to substitute the exact base URL and model identifier from their Console.




