Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.artnex.app/llms.txt

Use this file to discover all available pages before exploring further.

The Artnex REST API gives you programmatic access to every AI creative tool on the platform — image generation, image editing, video generation, text-to-speech, background removal, and upscaling — from any language or framework that can make HTTP requests.

Base URL

All API requests go to:
https://api.artnex.ai/v1
Every endpoint is relative to this base. For example, the image generation endpoint is POST https://api.artnex.ai/v1/generate.

Authentication

The API uses Bearer token authentication. Include your API key in the Authorization header of every request:
Authorization: Bearer YOUR_API_KEY
See the Authentication guide for step-by-step instructions on generating and using your API key.

Credit-based billing

Every API call deducts credits from your account balance. The number of credits consumed depends on the model and operation you choose. Credits never expire, and you can purchase additional packs at any time from your dashboard.
Credit costs are shown consistently across the dashboard and the API. Each endpoint’s reference page lists the exact credit cost per model. You can also check your remaining balance at any time from your account dashboard.

Response format

All responses are JSON objects. Successful responses include a success: true field alongside the result data. Failed requests return a JSON error body with a message field explaining the problem.
{
  "success": true,
  "request_id": "req_abc123xyz",
  "credits_used": 100
}

Rate limits

Requests are rate-limited per API key on a rolling 24-hour window:
PlanRequests per day
Free100
Pro1,000
EnterpriseCustom
When you exceed your limit, the API returns 429 Too Many Requests. Upgrade your plan or contact support to increase your limits.

Error responses

The API uses standard HTTP status codes. Every error response includes a JSON body:
{
  "success": false,
  "error": "invalid_api_key",
  "message": "The API key provided is not valid."
}
Status codeMeaning
400Bad Request — missing or invalid parameters
401Unauthorized — missing or invalid API key
402Payment Required — insufficient credits
422Unprocessable Entity — request is well-formed but invalid
429Too Many Requests — rate limit exceeded
500Internal Server Error — something went wrong on our end

Available endpoints

POST /v1/generate

Generate images from text prompts using a range of AI models.

POST /v1/edit

Edit and transform existing images with AI instructions.

POST /v1/video

Generate videos from text prompts or a reference image.

POST /v1/tts

Convert text to speech audio with ElevenLabs or Kling voices.

POST /v1/upscale

Upscale images to higher resolutions using AI.

POST /v1/remove-bg

Remove backgrounds from images and return a transparent PNG.

Next steps

Authenticate your first request

Get your API key and make your first authenticated API call in under five minutes.