Quick Start

Quick Start

Get a successful E3D response in under five minutes.

1. Prerequisites

  • Node.js 18+ or Python 3.8+
  • An E3D API key from Get API Key
  • A terminal

2. Install the SDK

npm install e3d-sdk

3. Initialize the client

import { E3D } from 'e3d-sdk';
 
const e3d = new E3D({
  baseUrl: 'https://e3d.ai/apitest',
  apiKey: process.env.E3D_API_KEY,
});

4. Fetch a token profile

The token profile combines metadata, price, stories, theses, and narrative flow.

const profile = await e3d.tokens.getTokenProfile('0x6488861b401F427D13B6619C77C297366bCf6386', {
  chain: 'ETH',
});
 
console.log(profile.name, profile.symbol);

5. Fetch recent stories

const stories = await e3d.stories.list({ limit: 3 });
console.log(stories);

6. What next?