# 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/0xnaj3euio0g/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 prices each image by tier, at one rate on pay as you go and prepaid credits, paid over x402, MPP or credits bought by card.
- [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 with a free agent credential, pay the 402 quote, and save the image to the repo.
- [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 a free agent credential and no account or API key, paying a 402 quote over x402 or MPP.
