Studia

Podstawowy adres URL https://arteza.ai/api/v1

Specyfikacja OpenAPI 3.1, dla generatorów SDK i agentów: /api/v1/openapi.json

Oficjalne SDKi dla TypeScript i Python, wiersz poleceń i umiejętności agentów: SDKi i CLI

Fashion Studio i Influencer AI działają również w API, z własną kompozycją studia, wyborem modelu i ponownym renderowaniem jako drugą szansę. Sesja zdjęciowa fotografuje ubrania na modelu: weź model, ubrania, buty, pozę i scenę z GET /studios/fashion/catalog (ustawienia predefiniowane lub własne dodane za pomocą POST /studios/fashion/items) i wyślij do 100 zdjęć w jednym żądaniu. Influencer AI tworzy osobowość z jej portretem i kartą tożsamości, a następnie fotografuje ją w dowolnym ubraniu, scenie lub ujęciu produktu.

Każde zdjęcie to jedno zadanie, wyceniane, rozliczane i zwracane osobno, i płacone w ten sam sposób, w jaki klucz płaci za każdą generację: kredyty planu w cenie studia, lub twoje saldo USD po koszcie dostawcy. Przeczytaj zadania za pomocą GET /studios/jobs lub otrzymuj studio_job.completed i studio_job.failed na swoim webhoku.

# A catalog shoot: a model in a top and trousers, one job per shot
curl https://arteza.ai/api/v1/studios/fashion/shoots \
  -H "Authorization: Bearer $ARTEZA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "mode": "catalog",
    "shots": [{ "model": "MODEL_ID", "top": "GARMENT_ID", "bottom": "GARMENT_ID" }],
    "webhook_url": "https://example.com/hooks/arteza"
  }'

# Ids for models, garments, footwear, poses and scenes:
curl "https://arteza.ai/api/v1/studios/fashion/catalog?kind=models" -H "Authorization: Bearer $ARTEZA_API_KEY"

# An AI influencer (portrait and identity sheet), then a look:
curl https://arteza.ai/api/v1/studios/influencer/personas \
  -H "Authorization: Bearer $ARTEZA_API_KEY" -H "Content-Type: application/json" \
  -d '{ "name": "Mara", "prompt": "a travel photographer in her thirties" }'
curl https://arteza.ai/api/v1/studios/influencer/looks \
  -H "Authorization: Bearer $ARTEZA_API_KEY" -H "Content-Type: application/json" \
  -d '{ "persona": "PERSONA_ID", "scene": "a cafe terrace in Lisbon", "platform": "portrait" }'