OhMyGPT API
English
  • 中文
  • English
  • 日本語
OhMyGPT
OhMyGPT
English
  • 中文
  • English
  • 日本語
    • Introduction to this site
    • Instructions for Using Promotional Program Rewards
    • Change log
    • OpenAI
      • Responses
        • Create model response
        • Get model response
        • Delete model response
        • Cancel response
        • List input items
      • Conversations
        • create conversation
        • Retrieve conversation
        • update conversation
        • delete conversation
        • Create items
        • list items
        • Retrieve item
        • Delete item
      • create completion
        POST
      • TTS text to speech
        POST
      • Embeddings
        POST
      • image generation
        POST
      • image editing
        POST
    • Store
      • List chat completions
        POST
      • Get chat completed
        POST
      • Deletion of chat completed
        POST
    • Claude
      • Anthropic native Completions enterprise commercial API
        POST
      • Anthropic native Messages API
        POST
      • Anthropic native Messages Token Count API
        POST
    • OAuth开放API
      • Introduction to Open OAuth API
      • User authorization page
        GET
      • Code display page
        GET
      • Apply for access_token
        POST
      • Read basic user information
        POST
      • Read user balance information
        POST
      • Charge user fees
        POST
      • Create a Stripe Checkout recharge order for the user
        POST
      • Create a Stripe Invoice recharge order for the user
        POST
      • Call other open APIs
        POST
      • Read user management token through OAuth Token
        POST
      • Update user management token through OAuth Token
        POST
    • other
      • search
        • Google Custom Search API
        • Google Search By Serper
      • Azure
        • Azure text-to-speech
        • Azure gets TTS voice list
    • Override rules
      • Create rules
      • Update rules
      • delete rule
      • Get rules
      • list rules
      • Batch enable/disable
      • Copy rules
      • test rules
      • Get statistics
      • Get restriction configuration
      • Check rule name
      • Batch delete
      • Export rules
      • Import rules
    • image generation
      • other
        • ND image generation API
      • Flux
        • Flux Schnell image generation
        • Flux Dev image generation
        • Flux Pro image generation
        • Flux Pro 1.1 image generation
        • Flux 1.1 Pro Ultura image generation
    • Storage service
      • File storage service
      • File upload
      • File information update
      • Delete files
      • User query (pagination)
      • User metadata query (by fileUinqueIds)
      • File download interface (Public file download)
      • File download interface (Private private file download)
      • Obtain public file metadata
    • API KEY management
      • Create new API Key
      • Modify API Key information
      • Query all API Keys of the user
      • Delete the specified API Key
      • Interface for querying user membership expiration date
      • User balance query interface
      • Query the current model magnification interface
    • Archive documents
      • Self-service invoicing system usage documentation
      • Telegram Bot usage documentation
      • Self-built Cloudflare Worker anti-generation tutorial
      • Claude Code Proxy service
      • CodeX forwarding service
      • Introduction to the new website
    • Model list
      GET

    Instructions for Using Promotional Program Rewards

    Introduction#

    We recently launched a promotional campaign for our website, currently offering both the inviter and qualified new users a resource package worth $20 for Claude Code API. However, we've noticed that many users haven't properly understood how to use this gift correctly, so we've written this article to provide detailed instructions about this promotion.

    Referral Reward Distribution Mechanism#

    For Existing Platform Customers (Inviters)#

    First, logged-in users can click on these areas on the homepage to navigate to the "Referral Program" page:
    image.png
    https://www.ohmygpt.com/i
    In the referral program, you can see your exclusive invitation link:
    image.png
    Example invitation link: https://www.ohmygpt.com/i/F81GTESR
    Share this link and have your friends/colleagues register with a qualifying email address. After that, it's the invitee's turn to proceed.

    For New Customers (Invitees)#

    After new customers access the invitation link, they will see the following page:
    image.png
    Please read these notes carefully and check them, then click the "I Understand" button to proceed to the login page:
    image.png
    Enter your email address and click continue. We will send you a login verification email:
    image.png
    Click the button or link in the email, then click the confirm button to log in:
    image.png
    After logging in, you will be directed to the /i invitation page. You may not see the gifted resource package initially, but it will appear after refreshing:
    image.png
    If after refreshing, you still see the invitation code input box, you may not qualify for the referral reward, or your invitation reward code may not have been automatically entered. In this case, you can try entering it manually:
    image.png

    How to Properly Check and Use Referral Rewards#

    Check Your Resource Package#

    You can check your current resource packages in the menu under "Billing"/"Resource Packages":
    image.png

    How to Start Using Resource Packages#

    Create Your API Key#

    image.png
    image.png

    Start Calling Claude Code Exclusive Messages API#

    Online debugging addresses:
    https://ohmygpt-docs.apifox.cn/api-378988586
    https://ohmygpt-docs.apifox.cn/api-378995298
    This indicates a successful call:
    image.png
    image.png

    Check Your Resource Package Deduction Records#

    We just completed two Claude Code API calls. These two requests fall within the resource package deduction scope of this promotion, so they will be automatically deducted with priority:
    image.png
    Since they were deducted, the amount for related records in the bill is 0:
    image.png

    Free Use of Claude Chat on the Web#

    Click the new conversation button in the upper left corner:
    image.png
    Recommended to select CS4.5 + Enable Deep Thinking:
    image.png
    image.png

    Using in Claude Code#

    If you're a developer, please check this article on how to set up CC:
    https://ohmygpt-docs.apifox.cn/doc-7055997

    Using in Immersive Translate#

    Note: Free users' rate quota may not be sufficient to support Immersive Translate. You may need to top up at least 20 yuan to increase your rate limit quota. See the documentation below for details.
    Common configuration method:
    URL:
    https://apic1.ohmycdn.com/api/v1/ai/openai/cc-omg/v1/chat/completions
    Model name:
    claude-haiku-4-5
    The API Key is your own API Key
    image.png

    Frequently Asked Questions#

    Why am I encountering a 402 error?#

    Many users ask why they have a total account value of 100 or 20 dollars but cannot call the API.
    When your balance is <= 0, your API access will be blocked, regardless of whether you have valid resource packages. This commonly occurs when you've called paid services without topping up. The reason for this is that we need to prioritize providing better services for paying users, and we don't have enough resources and budget to serve users with outstanding debts.
    In this situation, you need to restore your account balance to a positive number through top-up to restore service.
    image.png

    Why do I still have a negative balance after topping up?#

    Please carefully follow the documentation above to ensure you're calling the correct API and that the resource package has normal deduction records before using it extensively. If you're confident that you've read the documentation carefully and configured everything correctly, please contact us via email for feedback.

    How to increase rate limits?#

    If you want to use Claude Code API in software with high rate requirements like Immersive Translate, the default 60 RPM for free users may not be enough. You can top up 20 yuan to increase to 1000 RPM, or top up 300 yuan to increase to 10000 RPM.

    What is the actual price for continuing to use Claude Code service after my Claude Code resource package is depleted?#

    Currently, both our Claude Code exclusive API and CodeX exclusive API have a rate of 0.2, meaning the official API price *0.2 is the actual charge to your account balance. Charges from resource packages will not be multiplied by the 0.2 discount.
    For example, if you make a Claude Opus 4.1 call worth 1,ifit′sdeductedfromaresourcepackage,thepackagewillbededucted1 worth of resources. If you don't have a valid resource package and are paying with your balance, the discount will be applied before charging, meaning $0.2 will be deducted from your account balance.
    修改于 2025-11-19 09:08:17
    上一页
    Introduction to this site
    下一页
    Change log
    Built with