01
OpenAI-Compatible Inference API & SDKs
Correct use of the single base URL, key handling, request shape, and streaming across the documented routes, including the Python/TypeScript SDKs as drop-in replacements for the OpenAI client and the AgentBox managed-compute surface for agents.
Mapped capabilities
4 capabilities
Base URL, auth header, and endpoint routing
https://api.gmi-serving.com, Bearer key from console, POST /v1/chat/completions and sibling routes
Drop-in OpenAI SDK migration
Swapping base_url/api_key while keeping request shape and model-id semantics unchanged
Streaming responses
stream:true request flag and reading incremental chunk deltas
AgentBox agent deployment
Managed compute for running agents; when to reach for it versus the raw inference API
Illustrative example
- Input
- I have a working Python script using the OpenAI client with streaming. What is the smallest change to run it against GMI Cloud instead?
- Expected behavior
- Says to set base_url to https://api.gmi-serving.com/v1 and pass a GMI API key from the console, then use a model id from the GMI catalog. Confirms the request shape and streaming loop stay unchanged; no new SDK or custom parameters are required.




