Skip to main content

API icon API Reference (AiCordCloud)

Base URL:
https://api.aicord.cloud

Key icon Authentication

Use one of:
  • Authorization: Bearer <API_KEY>
  • x-api-key: <API_KEY>

Reference icon Endpoints

MethodPathDescription
GET/Service metadata
GET/healthHealth signal
GET/v1/modelsPublic model aliases
POST/v1/chat/completionsChat completion

GET /health response

{"ok": true}

POST /v1/chat/completions example

curl https://api.aicord.cloud/v1/chat/completions \
  -H "Authorization: Bearer YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "aicord/fast",
    "messages": [
      {"role":"system","content":"You are a coding assistant."},
      {"role":"user","content":"Create a Discord slash command /ping."}
    ],
    "temperature": 0.2
  }'

Headers icon Response headers

  • x-aicord-tier
  • x-aicord-model
  • x-aicord-upstream
  • x-aicord-latency-ms
  • x-ratelimit-remaining

Error icon Error format

{
  "error": {
    "message": "Unauthorized",
    "type": "authentication_error"
  }
}

OpenAPI spec

  • Local path: openapi/aicordcloud.openapi.yaml
  • Validate:
npx mintlify@latest openapi-check docs/openapi/aicordcloud.openapi.yaml