Skip to content

Commit

Permalink
chore: update apiKeyHeader to apiKey
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-support authored Dec 5, 2024
1 parent 071cc14 commit 0029952
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Instantiate and use the client with the following:
```typescript
import { CartesiaClient } from "@cartesia/cartesia-js";

const client = new CartesiaClient({ apiKeyHeader: "YOUR_API_KEY_HEADER" });
const client = new CartesiaClient({ apiKey: "YOUR_API_KEY_HEADER" });
await client.tts.bytes({
modelId: "sonic-english",
transcript: "Hello, world!",
Expand All @@ -47,7 +47,7 @@ await client.tts.bytes({
import { CartesiaClient } from "@cartesia/cartesia-js";

const cartesia = new CartesiaClient({
apiKeyHeader: "your-api-key",
apiKey: "your-api-key",
});

// Initialize the WebSocket. Make sure the output format you specify is supported.
Expand Down

0 comments on commit 0029952

Please sign in to comment.