Documentation

Authentication

All API requests require authentication using a Bearer token.

Using your API Key

Include your API key in the Authorization header of every request:

Authorization: Bearer ${RENDERFUL_API_KEY}

Example Request

curl -X POST https://api.renderful.ai/api/v1/generations \
  -H "Authorization: Bearer ${RENDERFUL_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{"type":"text-to-image","model":"flux-dev","prompt":"A sunset"}'

Security Best Practices

  • • Never expose your API key in client-side code
  • • Use environment variables to store your key
  • • Rotate keys periodically
  • • Use different keys for development and production

API Key Format

Renderful API keys follow a specific format for easy identification:

PrefixDescription
rf_API key for server-side use