Skip to main content

API Key Usage

Providing Your API Key

There are multiple ways to provide your API key when making requests to the Aigen API service. Choose the method that is most convenient for you.

Option 1: HTTP Header

You can include your API key in the X-AIGEN-KEY HTTP header:

curl -H 'X-AIGEN-KEY: YOUR_KEY_HERE' 'https://apis.aigen.online/aiscript/idcard/v2'

Option 2: Query Parameter

Alternatively, you can pass the API key as a query parameter named aigen_key:

curl 'https://apis.aigen.online/aiscript/idcard/v2?aigen_key=YOUR_KEY_HERE'

This method is particularly useful in environments where setting custom HTTP headers might be restricted or not possible, such as certain webhook integrations (e.g., LINE webhook).

Important Notes

  • Your API key is linked to your account and is used for tracking usage and enforcing rate limits.
  • Keep your API key secure. If you suspect your key has been compromised, please regenerate a new one immediately through the API management page.
  • If you have any questions or concerns about API key usage, please contact our support team via the support page.