Base URL

The base URL for the API is

https://api.getomni.ai

Authentication

All requests to the OmniAI API must include an x-api-key header with your API key. You can access your API Keys here.

x-api-key: <your_api_key>

The header name and value are case-insensitive. If a request is executed with invalid or missing headers, an HTTP 401 (Unauthorized) response will be returned.

Response Codes

The OmniAI API uses standard HTTP response codes to indicate the status of requests. Here’s what each code means:

CodeStatusDescription
200SuccessRequest was successful.
400Bad RequestThe request was invalid or malformed.
401UnauthorizedInvalid or missing API key.
404Not FoundThe requested resource doesn’t exist.
413Payload Too LargeExceeds the token limit configured for the selected LLM.
429Too Many RequestsRate limit exceeded. Try again later.
500, 503Server ErrorSomething went wrong on OmniAI’s end.