API Documentation

Build with Artfrika — Generate African-inspired designs programmatically

Base URL

https://api.artfrika.com/v1

Authentication

Bearer Token in Authorization header

Rate Limits

60 requests / minute (free tier)
Higher tiers available

Authentication

All API requests require authentication using an API key.

Authorization: Bearer YOUR_API_KEY

Get your API key from Dashboard → API Keys

Generate Design

POST/designs/generate

Request Body

{
  "prompt": "Yoruba adire pattern on modern hoodie, vibrant indigo and white",
  "style": "traditional-modern",
  "aspectRatio": "3:4",
  "quality": "high",
  "count": 4
}

Response (200 OK)

{
  "requestId": "req_abc123",
  "status": "completed",
  "designs": [
    {
      "id": "des_001",
      "url": "https://cdn.artfrika.com/...",
      "thumbnail": "..."
    }
  ],
  "creditsUsed": 4,
  "remainingCredits": 996
}

Status Codes

200Success

Request processed successfully

429Rate Limit Exceeded

Too many requests – wait and retry

401Unauthorized

Invalid or missing API key

402Payment Required

Insufficient credits

SDKs & Examples

Official libraries and code examples are available in several languages:

JavaScript / Node.js

npm install @artfrika/sdk

View examples →

Python

pip install artfrika

View examples →

cURL

Simple HTTP requests

View examples →

Ready to build with Artfrika?

Get your API key and start generating culturally rich designs programmatically today.

Get API Key →