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.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.
Base URL
All API requests go to:POST https://api.artnex.ai/v1/generate.
Authentication
The API uses Bearer token authentication. Include your API key in theAuthorization header of every request:
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 asuccess: true field alongside the result data. Failed requests return a JSON error body with a message field explaining the problem.
Rate limits
Requests are rate-limited per API key on a rolling 24-hour window:| Plan | Requests per day |
|---|---|
| Free | 100 |
| Pro | 1,000 |
| Enterprise | Custom |
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:| Status code | Meaning |
|---|---|
400 | Bad Request — missing or invalid parameters |
401 | Unauthorized — missing or invalid API key |
402 | Payment Required — insufficient credits |
422 | Unprocessable Entity — request is well-formed but invalid |
429 | Too Many Requests — rate limit exceeded |
500 | Internal 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.