Skip to main content

ModelsLab Go SDK

Official Go SDK for ModelsLab API - Generate AI content including images, videos, audio, 3D models, and more.

Features

Text-to-Image & Image-to-Image generation Text-to-Speech & Music generation Interior Design & 3D modeling Image Editing (upscaling, background removal, etc.) Realtime generation APIs Enterprise features support

Quick Start

1. Installation

2. Get Your API Key

  1. Sign up at ModelsLab.com
  2. Go to your dashboard
  3. get your API key

3. Basic Usage with community models

4. Run Your Code

API Examples

Text-to-Speech

Text-to-Video

Available APIs

Configuration

Basic Client

Custom Configuration

Enterprise Mode

Response Format

The SDK returns complete raw API responses as map[string]interface{} to preserve all fields:
You get ALL fields returned by the API, including metadata, generation time, proxy links, and any future fields.

File Input Options

The SDK supports multiple ways to provide images/audio:
Repository: