Skip to main content
The Agents API is the control plane for programmatic account management. It supports a fully headless workflow from signup to API key creation with no browser required. For content generation, use the existing generation APIs (/api/v6, /api/v7, /api/v8) with your API key.

Base URL

https://modelslab.com/api/agents/v1

Authentication Model Split

  • Agents API (/api/agents/v1): Bearer token (Sanctum personal access token)
  • Generation APIs (/api/v6, /api/v7, /api/v8): existing API key flow continues
Token issuance supports token_expiry on login:
  • 1_week
  • 1_month (default)
  • 3_months
  • never
Use a Bearer token to manage account and billing operations. Use API keys for generation requests via /api/v6, /api/v7, /api/v8.

Standard Response Envelope (Agents API)

{
  "data": {},
  "error": null,
  "meta": {
    "request_id": "<request-id>"
  }
}
Error shape:
{
  "data": null,
  "error": {
    "code": "validation_error",
    "message": "Human readable message",
    "details": {}
  },
  "meta": {
    "request_id": "<request-id>"
  }
}

Rate Limiting

Agents API uses dedicated limiters. All responses include X-RateLimit-Remaining and X-RateLimit-Reset headers.
  • agent-auth: signup/login/forgot/reset/resend verification
  • agent-billing: payment methods, wallet funding, coupon redemption, subscription mutations, server deployment
  • agent-general: authenticated control-plane endpoints

Endpoint Groups