Focused server-side examples for building with grok-imagine-image on PoYo.
Grok Imagine Image is useful for visual quality tests, thumbnails, social assets, and product concept images.
Try on PoYo | Get API Key | Docs | Pricing | Main Examples
- Text-to-image with
grok-imagine-image - cURL and Node.js backend examples
- Async task flow: submit, store
data.task_id, poll status, retrieve files - Webhook receiver notes for production callbacks
- Prompt examples and production integration notes
cp .env.example .env
export POYO_API_KEY="your-api-key"Run the Node.js example:
cd node
npm startKeep POYO_API_KEY on the server. Do not expose it in browser code, mobile apps, screenshots, or public logs.
| Path | What it covers |
|---|---|
curl/generate.md |
Copy-paste API request. |
node/ |
Native Node.js backend example. |
docs/prompt-examples.md |
Practical prompts for product workflows and creative tests. |
docs/production-notes.md |
Security and reliability notes before launch. |
webhooks/express-webhook/ |
Minimal Express receiver for PoYo callbacks. |
make checkOn Windows:
./scripts/check.ps1MIT