Reference · Image models
POST/images/midjourney-v7/quote
Price it: Midjourney V7
The price for exactly this body, the balance beside it and any notes. Nothing runs and nothing is charged. Run it with POST /api/v1/images/midjourney-v7, the same body, confirmCredits set to credits and the same Idempotency-Key.
- Key needs
create· Make things and spend credits- Runs it
POST /images/midjourney-v7- Answers
- A quote · free
Request
curl -X POST https://vessero.com/api/v1/images/midjourney-v7/quote \ -H "Authorization: Bearer $VESSERO_API_KEY" \ -H "Idempotency-Key: 47f8f6f5-ea00-4fb1-925f-76aac956a0ec" \ -H "Content-Type: application/json" \ -d '{ "prompt": "A linen shirt on a wooden hanger by a window, soft morning light", "aspectRatio": "1:1", "resolution": "Fast" }'
Response200 OK
{ "object": "quote", "credits": 12, "balance": 840, "lines": [ "1 image × 12 (Nano Banana Pro · 4K)" ], "notes": [], "requestId": "47f8f6f5-ea00-4fb1-925f-76aac956a0ec", "run": { "method": "POST", "path": "/api/v1/images", "confirmCredits": 12, "idempotencyKey": "47f8f6f5-ea00-4fb1-925f-76aac956a0ec" } }
Header
- Idempotency-KeystringYour id for this request: 8–64 letters, digits, - or _. A repeat within 10 minutes gets the first answer back and never runs twice. Use the same one for the quote and the run.
Body
- promptstringrequiredWhat the picture shows, e.g. "A linen shirt on a wooden hanger by a window, soft morning light".
- aspectRatiostringA shape the model lists (its aspectRatios), e.g. "16:9". Default: the model’s own.
1:116:99:164:33:43:22:35:44:521:92:11:2 - resolutionstringA size the model lists (its resolutions), e.g. "2K" — or, where its resolutionsAre says "Speed", a speed: Midjourney’s "Fast" or "Turbo". Default: the model’s own.
FastTurbo - referenceKeysstring[] · up to 4Pictures to work from, up to the model’s maxPictures. A model that needs a picture (needsPicture) makes nothing without one.
- referenceNames(string | null)[] · up to 16What the words call each picture in referenceKeys, in the same order, as its tile does: its @name, such as "@vera", or null for one with no name, which the words call by its place (@Image2). Each name goes to the model as the picture it calls. Never moves the price. A picture’s @name is the atName GET /api/v1/library and POST /api/v1/library/use give.
- negativePromptstringWhat to leave out of the picture, for a model that takes it (takesNegativePrompt).
- pageobjectA long page, for a model from studio "product-pages" only (it needs one): a product page or a web page as one tall picture, its width the size’s and its height what the page needs.
- kindstringrequired"product": a page about the product, from one to three pictures of it in referenceKeys. "web": a site’s design from the words, with no referenceKeys.
productweb - lengthstringA product page’s length: "short" (about 2–5 sections), "medium" (6–10) or "long" (11–18). It sets the price. Default: medium. A web page has one length.
shortmediumlong - styleKeystringA web page’s look, the picture whose style it takes: a storage key from POST /api/v1/files or POST /api/v1/library/use, or an https link to the file (brought into their Uploads first). The words call it @style. Optional.
- subjectKeystringA web page’s subject, the picture of what it keeps, such as the product: a storage key from POST /api/v1/files or POST /api/v1/library/use, or an https link to the file (brought into their Uploads first). The words call it @subject. Optional.
- styleNamestring | nullWhat the words call the look’s picture, its @name, if not @style.
- subjectNamestring | nullWhat the words call the subject’s picture, its @name, if not @subject.
- kindstringrequired"product": a page about the product, from one to three pictures of it in referenceKeys. "web": a site’s design from the words, with no referenceKeys.
Answers
- 200quoteThe price for exactly this body, your balance and any notes. Nothing ran.
- 400invalid_requestA field is missing or not accepted: see details.
- 403feature_unavailableThe studio this needs is switched off for the account right now.
- 429rate_limitedToo many calls this minute: see Retry-After.