MIDAPI DOCS
  • Get started
  • My Account
    • Image credits
    • Generation modes
    • Subscriptions
    • Cancel My Subscription
    • Delete My Account
  • API Endpoints
    • Authentication
    • Imagine
    • Reroll
    • Upscale
    • Variations
    • Inpaint
    • Outpaint
    • Pan
    • Describe
    • Blend
    • Seed
    • Fetch
    • Fetch Multiple
  • Help me with integration
  • FAQ
Powered by GitBook
On this page
  1. API Endpoints

Imagine

Generate an image using a text prompt. This is the /imagine command on Discord.

PreviousAuthenticationNextReroll

Last updated 1 year ago

CtrlK

This endpoint doesn't generate images instantly, you can use the Fetch endpoint to fetch the result or use webhooks.

POST https://api.midapi.pro/imagine

Headers

Name
Value

Content-Type

application/json

X-API-KEY

Bearer <token>

Body

Name
Type
Description

name

string

Name of the user

age

number

Age of the user

Response

{
  "id": 1,
  "name": "John",
  "age": 30
}
{
  "error": "Invalid request"
}