API Documentation

High-level reference for integrating with logoapp. Authentication, endpoints, and examples below.

Authentication

Use your bearer token in the Authorization header:

curl -X POST https://api.logoapp.ai/v1/complete \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"prompt":"Hello"}'

Rotate keys regularly. Never expose keys in client-side code.

Base URL

https://api.logoapp.ai/v1

Endpoints

POST /complete

Generate a model completion from a prompt.

Request Body:
{
  "prompt": "Explain quantum computing simply",
  "maxTokens": 256,
  "temperature": 0.7
}

Response:
{
  "id": "cmpl_123",
  "object": "text_completion",
  "created": 1735242323,
  "model": "qubic-alpha",
  "choices": [
    {"text": "Quantum computing is...", "finishReason": "stop", "index": 0}
  ],
  "usage": {"promptTokens": 5, "completionTokens": 42, "totalTokens": 47}
}

POST /chat

Chat-style interaction with streaming support.

Request Body:
{
  "messages": [
    {"role": "system", "content": "You are a helpful assistant."},
    {"role": "user", "content": "List 3 benefits of Rust."}
  ],
  "stream": true
}

GET /usage

Retrieve token and credit usage for the current key.

Response:
{
  "periodStart": "2025-08-01",
  "periodEnd": "2025-08-31",
  "requests": 421,
  "tokens": {"prompt": 120432, "completion": 342211, "total": 462643}
}

Error Format

{
  "error": {
    "type": "invalid_request",
    "message": "maxTokens must be <= 4096"
  }
}

Webhooks (Planned)

Webhook delivery for long-running jobs (fine-tuning, batch) is under development. Subscribe to updates in your dashboard.