Pricing
Returns the credit cost for each conversion type. Costs are read from the API at request time so this endpoint is the source of truth — your client should call it instead of hard-coding numbers.
| Method | GET |
| Path | /api/conversions/pricing |
Examples
Section titled “Examples”curl https://api.rigyd.com/api/conversions/pricing \ -H "Authorization: Bearer rgyd_live_..."const res = await fetch('https://api.rigyd.com/api/conversions/pricing', { headers: { Authorization: `Bearer ${process.env.RIGYD_API_KEY}` },});const { data } = await res.json();// data.glb_to_simready === 1import os, requests
pricing = requests.get( "https://api.rigyd.com/api/conversions/pricing", headers={"Authorization": f"Bearer {os.environ['RIGYD_API_KEY']}"},).json()["data"]Response
Section titled “Response”{ "data": { "glb_to_simready": 1, "text_to_simready": 2, "image_to_simready": 3, "multiview_to_simready": 3, "simulate_usd": 0 }}| Job type | Credits | Endpoint |
|---|---|---|
glb_to_simready | 1 | POST /api/conversions |
text_to_simready | 2 | POST /api/conversions/generate (prompt) |
image_to_simready | 3 | POST /api/conversions/generate (1 image) |
multiview_to_simready | 3 | POST /api/conversions/generate (2-4 images) |
simulate_usd | 0 | POST /api/conversions/:id/simulate |
Costs are deducted atomically when a job is accepted (202) and refunded automatically when a job ends in failed.