Do Your First AKI.IO API Request

AKI.IO offers beside the OpenAI compatible API and Anthropic compatible API its own model centric API called "AKI-IO API". The AKI-IO API exposes every available AI model as a dedicated endpoint. Models of similar use cases (large language models, image generation and editing, OCR, decision and embedding models) have a similar and comparable structure but can have unique additional parameters. Also "higher level" use case and services are available as AKI-IO API endpoints which can group functions of different models to a more complete and functional service.

Many AI models have their own capabilities and specific functions which are not compatible or reachable through the standard OpenAI and Anthropic APIs, like differing or specialized parameters, context-format, inputs and additional outputs. This is where the AKI-IO model-specific API has major advantages, as features can be communicated directly to the model. There is no need to adapt the entire API specification to use a new function a new model introduces, it directly can be addressed.

The AKI-IO API is designed as a bidirectional, real-time streaming interface, but it can also be used in a traditional blocking request–response mode.

All communication is performed exclusively via JSON messages. This includes binary data, which must be embedded directly within the JSON payload (for example, as Base64-encoded content). No additional transport channels or side channels are required.

Authentication is handled within the JSON payload itself. No HTTP headers are required for authentication. This design makes API calls straightforward, reliable, and proxy-safe.

The following example demonstrates a basic request using the curl command-line tool:

curl -X POST -H 'Content-Type: application/json' -d \
'{ "key":"YOUR-AKI-API-KEY", "prompt_input":"Tell a joke", "wait_for_result": true}' \
https://aki.io/api/call/gpt_oss_chat

This example does a simple blocking call to the GPT-OSS 120B model endpoint (gpt_oss_chat), with a simple input prompt to “Tell a joke”, due the option “wait_for_result”, returning the complete response as JSON data:

{
  "text": "<think>The user asks: \"Tell a joke\". We need to comply, providing a joke. Should be safe, non-offensive, inclusive. Provide a light-hearted joke. No constraints. So just give a joke.</think>\nSure, here’s a light‑hearted one for you:\n\nWhy don’t scientists trust atoms anymore?\n\nBecause they **make up** everything!",
  "max_seq_len": 128000,
  "finish_reason": "stop",
  "success": true,
  "job_id": "c2ee6c02-e02f-4081-b23b-928676b758db-17aa",
  "prompt_length": 175,
  "num_generated_tokens": 81,
  "num_cached_tokens": 160,
  "current_context_length": 256,
  "model_name": "glm5.3-tl5",
  "total_duration": 0.492,
  "compute_duration": 0.478,
  "ep_version": 3
}

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 API request.

To use the full capabilities of the AKI.IO API, including real-time streaming, official client libraries are available for Python (via PyPI) and Javascript. Additional SDKs and interfaces are currently under development and will be released soon.

If you need assistance integrating the AKI.IO API into your preferred programming language or application framework, please contact us at support@aki.io.