التوثيق
ESC
تسجيل الدخول استخدام QuQi
API
Getting started
The QuQi API Authentication
Your account
GET List your websites POST Issue a narrowed key
Channels
GET List channels GET One channel
Posts
POST Plan a post GET List posts GET One post POST Publish a post
Articles
POST Plan an article GET List written articles GET One written article
The calendar
GET The calendar
Pictures
POST Make a picture GET The picture library GET Check a task
Webhooks
POST Add a webhook GET List webhooks DELETE Remove a webhook
Reading finished work
GET Status GET Keywords GET List articles GET One article POST Connect a site POST Disconnect a site
Getting started
Errors

Make a picture

A picture from a description, designed in your brand from your own website.

قراءة 3 دقائق Paid plans
POST /api/v1/images
prompt string مطلوب
What the picture should show and say, in plain words.
website_id string مطلوب
Which website. The picture is made in that brand, from that website.
aspect string اختياري
1:1, 4:5, 9:16, 16:9 or 3:4. Defaults to square.
ابدأ من هنا Describe the subject, not the design. Your brand’s colours, fonts and logo are applied for you, from your brand kit and your website. "A mechanic handing over keys" is a prompt; "blue gradient with big white letters" fights your brand.

QuQi designs the picture from the prompt, your brand and your website, which takes a few minutes, so this answers 202 with a task to check. Up to credits_held credits are set aside while it is made, and what it does not use comes back. A website without enough credits is told before anything starts.

CURL
curl -X POST https://console.quqi.io/api/v1/images \
  -H "Authorization: Bearer quqi_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "website_id": "019feda8-0ca6-70d1-b927-697fa6650cda",
    "prompt": "a mechanic handing over keys",
    "aspect": "4:5"
  }'
RESPONSE 202
{
  "success": true,
  "data": {
    "task_id": "01a0…",
    "status": "queued",
    "credits_held": …,
    "note": "An agent designs the picture from this brief, the brand and the website: a few minutes. Poll GET /api/v1/tasks/01a0…. Up to credits_held credits are set aside; what it does not use comes back."
  }
}
هل أجابت هذه الصفحة عن سؤالك؟ نعم ليس تمامًا