List all packs
Parameters
Returns
An array of packs owned by the authenticated user or gallery packs for GET /gallery/packs
GET /packs
or GET /gallery/packs
- cURL
- Node.js
- Python
curl -X GET -H "Authorization: Bearer $API_KEY" https://api.astria.ai/packs
# or
curl -X GET -H "Authorization: Bearer $API_KEY" https://api.astria.ai/gallery/packs
const headers = { Authorization: `Bearer ${API_KEY}` }
fetch('https://api.astria.ai/packs', { headers: headers });
// or
fetch('https://api.astria.ai/gallery/packs', { headers: headers });
import requests
headers = {'Authorization': f'Bearer {API_KEY}'}
requests.get('https://api.astria.ai/packs')
# or
requests.get('https://api.astria.ai/gallery/packs')
Response
[
{
"id": 5,
"base_tune_id": 1,
"user_id": 1,
"slug": "test-rv5-1-pack",
"title": "test rv5.1 pack",
"token": "ohwx",
"created_at": "2024-01-17T12:35:13.379Z",
"updated_at": "2024-04-04T12:14:52.094Z",
"multiplier": 10,
"model_type": null,
"public_at": null,
"cost_mc_hash": {
"man": 200000, // cost in milli-cents - $20 USD
"woman": 100000 // cost in milli-cents - $10 USD
}
}
]