> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stigg.io/llms.txt
> Use this file to discover all available pages before exploring further.

# CreditRateInput

> Credit Rate Input



**Kind**: `input`

## Fields

**`amount`**: `Float!` (required)

The credit rate amount

---

**`costFormula`**: `String`

A custom formula for calculating cost based on single event dimensions

---

**`currencyId`**: `String!` (required)

The custom currency refId for the credit rate

---

**`customCurrencyId`**: `UUID`

The custom currency ID for the credit rate



## Related topics

- [Go SDK](https://docs.stigg.io/api-and-sdks/changelog/backend-graphql/go.md)
- [Custom credit consumption formulas](https://docs.stigg.io/documentation/modeling-your-pricing-in-stigg/credits/custom-formula.md)
- [CreditRate](https://docs.stigg.io/graphql-reference/types/CreditRate.md)
- [Model OpenAI-style token pricing](https://docs.stigg.io/guides/i-want-to/model-openai-style-token-pricing.md)
- [CreditGrantInput](https://docs.stigg.io/graphql-reference/types/CreditGrantInput.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.