• Chat
  • Pricing
  • Blog
  • Downloads
  • API
    • Platform overview
    • Models
    • Rankings
    • API docs
    • Platform console
  • Company
    • About
    • Contact
    • Changelog
    • Roadmap
    • Contributors
  • Chat
  • Pricing
  • Blog
  • Downloads
  • API
    • Platform overview
    • Models
    • Rankings
    • API docs
    • Platform console
  • Company
    • About
    • Contact
    • Changelog
    • Roadmap
    • Contributors
Ditfa Platform
  • Overview
  • Models
  • Compare
  • Rankings
  • Docs
Open console
  • Overview
  • Authentication & SDKs
  • Chat completions
  • Models, key, credits
  • Billing & routing
  • Free & sponsored models
  • Errors & limits
  • Going to production
  • Plan API vs Platform
Create an API keyModel catalogGet support

Guides

Going to production

Name your app, keep a ceiling on every key, and make cost questions easy to answer.
On this page
  • App attribution
  • Best practices

App attribution#

Optional headers that put your app on the public rankings and model pages.
HTTP-Referer: https://your-app.example
X-Title: Your App

Referer is accepted when HTTP-Referer is absent. Only the origin of the referer is ever shown publicly, never its path or query. Both values also appear in your own request log.

Best practices#

  • Use one key per app or environment, each with its own spend limit, so a leak or a bug has a ceiling.
  • Add an IP allowlist for keys used from fixed servers, and an expiry for temporary keys.
  • Restrict production keys to the models you actually use, so a typo cannot route to a much pricier model.
  • Log x-ditfa-generation-id with your own request ids; it makes cost questions and support tickets quick to answer.
  • Check GET /credits from a cron job or set a low-balance alert so production never hits insufficient_credits.
PreviousErrors & limitsNextPlan API vs Platform

On this page

  • App attribution
  • Best practices
Terms of ServicePrivacy PolicyRefund PolicyAcceptable UseContact

© 2026 Ditfa. All rights reserved.

TeamtemGitHubHuggingface
  • Chat
  • Pricing
  • Blog
  • Downloads
  • API
    • Platform overview
    • Models
    • Rankings
    • API docs
    • Platform console
  • Company
    • About
    • Contact
    • Changelog
    • Roadmap
    • Contributors
  • Chat
  • Pricing
  • Blog
  • Downloads
  • API
    • Platform overview
    • Models
    • Rankings
    • API docs
    • Platform console
  • Company
    • About
    • Contact
    • Changelog
    • Roadmap
    • Contributors
Ditfa Platform
  • Overview
  • Models
  • Compare
  • Rankings
  • Docs
Open console

Your analytics choice

Allow Google Analytics to measure visits and public-page clicks so we can improve Ditfa? Optional analytics stays off until you choose. Privacy policy