Tinqs ForgeBack to Home

API Documentation

Programmatic access to Tinqs Forge generation pipeline.

Authentication

All API requests require an API key. Create one in your Dashboard → API Keys.

curl -H "Authorization: Bearer tq_YOUR_API_KEY" \
     https://tinqs.com/forge/api/generate/text2img

Endpoints

POST/api/generate/text2img1 credits

Generate a 2D image from a text prompt. Uses FLUX.2 [klein] 4B.

{ "prompt": "Polynesian wooden sword blade, white background" }
{ "success": true, "imageUrl": "https://...", "remaining": 9 }
POST/api/generate/img2mesh5 credits

Generate a 3D mesh from an image URL. Uses TRELLIS.2.

{ "imageUrl": "https://example.com/sword.png" }
{ "success": true, "meshUrl": "https://...", "remaining": 4 }
POST/api/generate/full6 credits

Full pipeline: text → 2D image → 3D mesh. Chains FLUX.2 → TRELLIS.2.

{ "prompt": "Polynesian wooden sword blade" }
{ "success": true, "imageUrl": "...", "meshUrl": "...", "remaining": 3 }
GET/api/credits

Check your credit balance.

{ "credits": 10 }