Bark

Replicate
Audio & Music

Suno's text-to-audio model. Generates realistic speech, music, and sound effects.

Examples

See what Bark can generate

Nature Ambience

0:15

"Peaceful forest soundscape with gentle bird songs, a babbling brook in the distance, rustling leaves in a light breeze, and occasional soft wind chimes, ambient and calming"

Retro Synth

0:20

"1980s synthwave track with pulsing arpeggiated synthesizers, heavy reverb snare drums, driving bass line, and shimmering pad layers, nostalgic and energetic, 120 BPM"

Try Bark
Sign up free to start generating
Get Started

Pricing

Price per Generation
Per generation€0.50

API Integration

Use our OpenAI-compatible API to integrate Bark into your application.

Install
npm install railwail
JavaScript / TypeScript
import railwail from "railwail";

const rw = railwail("YOUR_API_KEY");

// Simple — just pass a string
const reply = await rw.run("bark", "Hello! What can you do?");
console.log(reply);

// With message history
const reply2 = await rw.run("bark", [
  { role: "system", content: "You are a helpful assistant." },
  { role: "user", content: "Explain quantum computing simply." },
]);
console.log(reply2);

// Full response with usage info
const res = await rw.chat("bark", [
  { role: "user", content: "Hello!" },
], { temperature: 0.7, max_tokens: 500 });
console.log(res.choices[0].message.content);
console.log(res.usage);
Specifications
Avg. latency
15.0s
Est. duration
15s
Provider
Replicate
Category
Audio & Music
Supported Formats
wav
Tags
speech
sound-effects
Try this model

Free credits on sign-up

Start using Bark today

Get started with free credits. No credit card required. Access Bark and 100+ other models through a single API.