Picsart API Platform
← All models

Eleven STS v2

ElevenLabs · Audio · Speech → Speech

Swap your voice to a different speaker while keeping timing and emotion.

Model ID: eleven-sts-v2Workflow: elevenlabs/v1/speech-to-speech
Voice ChangerEmotion Preserved
Try on Playground ↗

Install the SDK

The SDK targets Node 20+ and ships with TypeScript types.

npm
npm install @picsart/ai-sdk

Authenticate

Create a client once with your API key — it's sent as a bearer token on every request.

TypeScript
import { createClient } from '@picsart/ai-sdk';

const ai = createClient({
  apiKey: process.env.PICSART_API_KEY, // sent as: Authorization: Bearer <key>
  apiUrl: 'https://api.picsart.com',
});

Run the model

Call the model with its parameters. This example uses the required ones.

TypeScript
import { createClient } from '@picsart/ai-sdk';

const ai = createClient({
  apiKey: process.env.PICSART_API_KEY,
  apiUrl: 'https://api.picsart.com',
});

const result = await ai.generate('eleven-sts-v2', {
  audioUrl: "https://cdn.example.com/input.mp3"
});

console.log(result.url); // audio URL

Parameters

3 parameters. Required ones must be supplied; the rest fall back to their defaults.

ParameterTypeRequiredDefaultDetails
audioUrl
Speech Audio
file (audio)yes
voiceId
Voice
enumnoJBFqnCBsd6RMkjVDRZzbJBFqnCBsd6RMkjVDRZzb, EkK5I93UQWFDigLMpZcX, RILOU7YmBhvwJGDGjNmP, Z3R5wn05IrDiVCyEkUrK, NNl6r8mD7vthiJatiJt1, Bj9UqZbhQsanLzgalpEG, exsUS4vynmxd379XN4yO, BpjGufoPiobT79j2vtj4, kdmDKE6EkgrWrrykO9Qt, 1SM7GgM6IMuvQlz2BwM3, ouL9IsyrSnUkCmfnD02u, 5l5f8iK3YPeGga21rQIX, scOwDtmlUjD3prqpp97I, 19STyYD15bswVz51nqLf, BZgkqPqms7Kj9ulSkVzn, wo6udizrrtpIxWGp2qJk, yjJ45q8TVCrtMhEKurxY, gU0LNdkMOQCOrPrwtbee, DGzg6RaUqxGRTHSBjfgF, x70vRnQBMBu4FAYhjJbO
removeBackgroundNoise
Remove Background Noise
booleannofalse

Output

generate() resolves once the job completes. An audio URL.

Result
{
  "url": "https://cdn.picsart.com/…/result",
  "results": [
    { "url": "https://cdn.picsart.com/…/result" }
  ],
  "model": "eleven-sts-v2"
}