Skip to main content

Introduction

This API reference describes the RESTful, streaming, and realtime APIs you can use to interact with GMI Inference. REST APIs are usable via HTTP in any environment that supports HTTP requests.

Authentication

The GMI API uses API keys for authentication. Create, manage, and learn more about API keys in your organization settings. Important Security Notes:
  • API keys should be provided via HTTP Bearer authentication:
  • Never expose API keys in client-side code
  • Load keys from environment variables or key management services
  • For multi-organization access, specify headers:

List Models

GET https://api.gmi-serving.com/v1/models Lists available models with basic information about each model, including capabilities, ownership, and permissions.

Example Request

Response

Response Parameters

Create Chat Completion

POST https://api.gmi-serving.com/v1/chat/completions Creates a model response for the given chat conversation. Supports text, images, and audio modalities.

Authorization

Request Body

Parameters

Response

Response Fields

Important Notes

  1. Use response_format: {"type": "json_object"} for JSON mode
  2. Streaming responses include usage stats in final chunk
  3. Default context handling differs from Other provider (truncates instead of erroring)
  4. Multiple penalties interact - use carefully to avoid quality degradation

Key Notes

  1. Parameter support varies by model - check model documentation
  2. New projects should use Responses format for latest features
  3. Organization/project usage is tracked via headers
  4. Find organization/project IDs in settings pages