Do Your First Request

AKI.IO can be used as a drop-in replacement for existing OpenAI API or Anthropic API based tools.

Additional AKI.IO offers its own AKI-IO API to directly communicate with the offered ai models to use model specific features and models that are not yet covered by the OpenAI and Anthropic APIs.

The highlights of each API AKI.IO supports:

  • The OpenAI API is the most widely used and supported AI API. It offers APIs for LLM, image-generation, and embedding workloads — among others.

  • The Anthropic API is best suited to agentic workloads. Its Messages API is the primary interface for coding and agentic tools. The Anthropic API, however, specializes in LLM requests with a detailed and powerful chat-context format; it does not provide interfaces for embedding or image-generation API calls.

  • The AKI-IO API is best used for specific models and model features that are not covered by the OpenAI and Anthropic APIs. Its robust bidirectional streaming capability is well suited to real-time applications and to communication with mobile and low-power devices.

The following example demonstrates a basic OpenAI chat completions request using the curl command-line tool. For $AKI_IO_API_KEY your here obtained api key has to be inserted:

curl https://aki.io/v1/chat/completions \
  -H "Authorization: Bearer $AKI_IO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "glm5.3-tl5",
    "messages": [{"role": "user", "content": "Tell a joke"}],
    "stream": false
  }'

This example does a simple blocking call to the GLM 5.3 model (glm-5.3-tl5), with a simple input prompt to “Tell a joke”. As no streaming is requested, this is a blocking api call, returning the complete response as JSON data:

{
  "id": "chatcmpl-0ee9d59d-fde3-454c-851b-11bc8447b97a-10e4",
  "object": "chat.completion",
  "model": "glm5.3-tl5",
  "choices": [
    {
      "message": {
        "role": "assistant",
        "reasoning": "Simple request: tell a joke.",
        "content": "Why don't scientists trust atoms?\n\nBecause they make up everything! Want another one?",
      },
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 41,
    "completion_tokens": 29,
    "total_tokens": 70,
    "prompt_tokens_details": {
      "cached_tokens": 0,
      "audio_tokens": 0
    },
  }
}

In addition to the response result, the API returns relevant metadata such as the number of input tokens, generated tokens, and the total compute duration.

That’s it — you’ve made your first AKI.IO LLM request.

Advanced Agent Setup: For a complete machine-readable configuration guide, see the AI Coding Agents Integration Guide.