API Playground
Send real PicX API calls from the browser and see the request, the response and the generated asset.
Request
POST /api/generations/imageJavaScript
// Signed-in browser session (cookie), as this page sends it
await fetch("https://api.picxstudio.com/api/generations/image", {
method: "POST",
credentials: "include",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"prompt": "<your prompt>",
"model": "google/nano-banana-2-1",
"mode": "generate",
"size": "1K",
"aspect_ratio": "16:9"
}),
});Response
Press Generate to send the request. The response and the generated asset appear here.