I want to make Image Genration api via Cloudflare worker function js, here is base url "https://fastapimidjourney.vercel.app" and here is "API key = vs-745sadf5g45f4g5f4g5f4g5" must use post here is Docs "POST

/generate

Generate an image by forwarding request to the backend


Parameters

Try it out

No parameters


Request body


application/json

Example Value

Schema

{

  "message": "string",

  "style": "cinematic"

}

Responses

Code Description Links

200 

Successful Response


Media type


application/json

Controls Accept header.

Example Value

Schema

"string"

No links

422 

Validation Error


Media type


application/json

Example Value

Schema

{

  "detail": [

    {

      "loc": [

        "string",

        0

      ],

      "msg": "string",


      "type": "string"

    }

  ]

}

No links" user must enter prompt in my api base via parameters. In last give me example of my api

Why why? Method Not Allowed "" and post method for backed api, in my api Direct show response. And also add "/" for this api small introduction. And when we request on our backed api which response get show in my api like copy response and past in my api. 

Why you not understand, for backed api use only get method. And I don't need any like for "GET  link" user can search or type my api Direct show response or api details which they do. And use json response not html

Comments