POST
/
v1
/
azure-ai
/
{endpoint}
/
chat
/
completions
curl --location 'https://api.altrum.ai/v1/azure-ai/{ENDPOINT}/chat/completions' --header 'Project-Api-Key: ALTRUMAI_PROJECT_API_KEY' --header 'Authorization: Bearer AZURE_AI_STUDIO_API_KEY' --header 'Content-Type: application/json' --data '{
    "model":MODEL_NAME,
    "messages": [
        {"role":"assistant", "content":"You are a helpful assistant"},
        {"role":"user", "content":"Hello"}
    ],
    "stream":false
}'
{
  "choices": [
    {
      "finish_reason": "stop",
      "index": 0,
      "message": {
        "content": "Artificial Intelligence (AI) refers to computer systems that can think, learn, and act like humans, using algorithms and data to solve problems, make decisions, and perform tasks autonomously.",
        "role": "assistant",
        "tool_calls": []
      }
    }
  ],
  "created": 1732103079,
  "id": "cmpl-80dc4daf09d64800ac9349ca6302fd0b",
  "model": "azure_ai/Meta-Llama-3.1-8B-Instruct",
  "object": "chat.completion",
  "usage": {
    "completion_tokens": 39,
    "prompt_tokens": 28,
    "total_tokens": 67
  }
}

Note: Only Chat Completion LLMs are compatible with this proxy.

Authorizations

Project-Api-Key
string
header
required

Headers

authorization
string
required

Azure AI Studio API key in format 'Bearer {key}'

Path Parameters

endpoint
string
required

The Azure AI Studio endpoint

Body

application/json

Schema for Azure AI Studio API requests.

Response

200
application/json

Successful Response

Schema for LLM model responses.