You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*[`useOAuthExchangeAuthCodeForAPIKeyMutation`](docs/sdks/oauth/README.md#exchangeauthcodeforapikey) - Exchange authorization code for API key
521
-
*[`useParametersGetParameters`](docs/sdks/parameters/README.md#getparameters) - Get a model's supported parameters and data about which are most popular
522
-
*[`useProvidersList`](docs/sdks/providers/README.md#list) - List all providers
500
+
-[`useAnalyticsGetUserActivity`](docs/sdks/analytics/README.md#getuseractivity) - Get user activity grouped by endpoint
501
+
-[`useApiKeysCreateMutation`](docs/sdks/apikeys/README.md#create) - Create a new API key
502
+
-[`useApiKeysDeleteMutation`](docs/sdks/apikeys/README.md#delete) - Delete an API key
503
+
-[`useApiKeysGet`](docs/sdks/apikeys/README.md#get) - Get a single API key
504
+
-[`useApiKeysGetCurrentKeyMetadata`](docs/sdks/apikeys/README.md#getcurrentkeymetadata) - Get current API key
505
+
-[`useApiKeysList`](docs/sdks/apikeys/README.md#list) - List API keys
506
+
-[`useApiKeysUpdateMutation`](docs/sdks/apikeys/README.md#update) - Update an API key
507
+
-[`useBetaResponsesSendMutation`](docs/sdks/responses/README.md#send) - Create a response
508
+
-[`useChatSendMutation`](docs/sdks/chat/README.md#send) - Create a chat completion
509
+
-[`useCompletionsGenerateMutation`](docs/sdks/completions/README.md#generate) - Create a completion
510
+
-[`useCreditsCreateCoinbaseChargeMutation`](docs/sdks/credits/README.md#createcoinbasecharge) - Create a Coinbase charge for crypto payment
511
+
-[`useCreditsGetCredits`](docs/sdks/credits/README.md#getcredits) - Get remaining credits
512
+
-[`useEndpointsList`](docs/sdks/endpoints/README.md#list) - List all endpoints for a model
513
+
-[`useEndpointsListZdrEndpoints`](docs/sdks/endpoints/README.md#listzdrendpoints) - Preview the impact of ZDR on the available endpoints
514
+
-[`useGenerationsGetGeneration`](docs/sdks/generations/README.md#getgeneration) - Get request & usage metadata for a generation
515
+
-[`useModelsCount`](docs/sdks/models/README.md#count) - Get total count of available models
516
+
-[`useModelsList`](docs/sdks/models/README.md#list) - List all models and their properties
517
+
-[`useModelsListForUser`](docs/sdks/models/README.md#listforuser) - List models filtered by user provider preferences
-[`useOAuthExchangeAuthCodeForAPIKeyMutation`](docs/sdks/oauth/README.md#exchangeauthcodeforapikey) - Exchange authorization code for API key
520
+
-[`useParametersGetParameters`](docs/sdks/parameters/README.md#getparameters) - Get a model's supported parameters and data about which are most popular
521
+
-[`useProvidersList`](docs/sdks/providers/README.md#list) - List all providers
523
522
524
523
</details>
525
524
<!-- End React hooks with TanStack Query [react-query] -->
@@ -668,7 +667,6 @@ run();
668
667
Some of the endpoints in this SDK support retries. If you use the SDK without any configuration, it will fall back to the default retry strategy provided by the API. However, the default retry strategy can be overridden on a per-operation basis, or across the entire SDK.
669
668
670
669
To change the default retry strategy for a single API call, simply provide a retryConfig object to the call:
671
-
672
670
```typescript
673
671
import { OpenRouter } from"@openrouter/sdk";
674
672
@@ -806,7 +804,6 @@ run();
806
804
```
807
805
808
806
If you'd like to override the default retry strategy for all operations that support retries, you can provide a retryConfig at SDK initialization:
809
-
810
807
```typescript
811
808
import { OpenRouter } from"@openrouter/sdk";
812
809
@@ -958,7 +955,6 @@ run();
958
955
|`error.data$`|| Optional. Some errors may contain structured data. [See Error Classes](#error-classes). |
*[`OpenRouterError`](./src/models/errors/openroutererror.ts): The base class for HTTP error responses.
1109
1103
*[`InternalServerResponseError`](./src/models/errors/internalserverresponseerror.ts): Internal Server Error - Unexpected server error. Status code `500`. *
1110
1104
@@ -1113,15 +1107,14 @@ run();
1113
1107
<br />
1114
1108
1115
1109
**Network errors:**
1116
-
1117
1110
*[`ConnectionError`](./src/models/errors/httpclienterrors.ts): HTTP client was unable to make a request to a server.
1118
1111
*[`RequestTimeoutError`](./src/models/errors/httpclienterrors.ts): HTTP request timed out due to an AbortSignal signal.
1119
1112
*[`RequestAbortedError`](./src/models/errors/httpclienterrors.ts): HTTP request was aborted by the client.
1120
1113
*[`InvalidRequestError`](./src/models/errors/httpclienterrors.ts): Any input used to create a request is invalid.
1121
1114
*[`UnexpectedClientError`](./src/models/errors/httpclienterrors.ts): Unrecognised or unexpected error.
1122
1115
1123
-
**Inherit from [`OpenRouterError`](./src/models/errors/openroutererror.ts)**:
1124
1116
1117
+
**Inherit from [`OpenRouterError`](./src/models/errors/openroutererror.ts)**:
1125
1118
*[`UnauthorizedResponseError`](./src/models/errors/unauthorizedresponseerror.ts): Unauthorized - Authentication required or invalid credentials. Status code `401`. Applicable to 14 of 22 methods.*
1126
1119
*[`BadRequestResponseError`](./src/models/errors/badrequestresponseerror.ts): Bad Request - Invalid request parameters or malformed input. Status code `400`. Applicable to 8 of 22 methods.*
1127
1120
*[`TooManyRequestsResponseError`](./src/models/errors/toomanyrequestsresponseerror.ts): Too Many Requests - Rate limit exceeded. Status code `429`. Applicable to 8 of 22 methods.*
0 commit comments