# Driftflight guides

Documentation for using Driftflight's agent storefront: what it sells, how to call it, what it costs, and how to recover from errors. The storefront itself: https://agents.driftflight.com/zcj/j5f3egmwy90z/llms.txt.

- [Generate an image from a text prompt with Driftflight's API](https://agents.driftflight.com/guides/quickstart.md): One POST to Driftflight's text-to-image API returns a 402 price quote. Pay it over x402 or MPP, retry the same request and save the image.
- [Driftflight API pricing: price per image, credits and payment](https://agents.driftflight.com/guides/pricing-for-agents.md): Driftflight image generation is priced per image by tier, the same on pay as you go and prepaid credits, and paid over x402, MPP or card-funded credits.
- [Generate images in Claude Code with Driftflight's text-to-image API](https://agents.driftflight.com/guides/generate-images-in-claude-code.md): Send one capped request to Driftflight's storefront from Claude Code, pay the 402 quote, and save the image into the repository. No API key.
- [Generate consistent product images with Driftflight's API](https://agents.driftflight.com/guides/consistent-product-images.md): Keep a product image set consistent with Driftflight's API: fix the preset, prompt template and tier, draft on sketch, render each product on studio.
- [Driftflight API errors: 402, bearer_required, insufficient_funds](https://agents.driftflight.com/guides/storefront-errors.md): Driftflight storefront error codes with the recovery that cannot charge twice: the 402 price quote, payment, identity, plan and request errors.
- [Can AI agents buy images from Driftflight?](https://agents.driftflight.com/guides/can-ai-agents-buy-from-driftflight.md): Yes. Agents buy Driftflight images per call with no account or API key by paying a 402 quote over x402 or MPP. A card buys prepaid credits.
