CoolFace
Apppublic

mindchain/nemo-datadesigner-api

sourceHugging Faceupdated 7mo agoView on Hugging Face
0likes
App README

NVIDIA NeMo DataDesigner API

REST API for synthetic data generation using NVIDIA NeMo DataDesigner with z.ai backend.

Endpoints

MethodEndpointDescription
GET/Health check
GET/healthHealth check
GET/modelsList available models
GET/sampler-typesList sampler types
POST/generateGenerate synthetic data
POST/previewPreview single record

Usage

Generate Data

bash
curl -X POST https://mindchain-nemo-datadesigner-api.hf.space/generate \
  -H "Content-Type: application/json" \
  -d '{
    "num_records": 5,
    "model": "glm-4.7",
    "columns": [
      {
        "name": "category",
        "type": "sampler",
        "params": {
          "sampler_type": "CATEGORY",
          "values": ["Electronics", "Books", "Clothing"]
        }
      },
      {
        "name": "review",
        "type": "llm_text",
        "params": {
          "prompt": "Write a brief product review for a {{ category }} item."
        }
      }
    ]
  }'

Preview

bash
curl -X POST https://mindchain-nemo-datadesigner-api.hf.space/preview \
  -H "Content-Type: application/json" \
  -d '{
    "model": "glm-4.7",
    "columns": [
      {"name": "category", "type": "sampler", "params": {"sampler_type": "CATEGORY", "values": ["A", "B"]}},
      {"name": "text", "type": "llm_text", "params": {"prompt": "Generate text about {{ category }}"}}
    ]
  }'

Available Models

IDNameUse Case
glm-5GLM-5 (Opus)Complex reasoning
glm-4.7GLM-4.7 (Sonnet)General purpose
glm-4.5-airGLM-4.5-Air (Haiku)Fast generation

Column Types

TypeDescriptionRequired Params
samplerStatistical samplerssampler_type, type-specific params
llm_textLLM text generationprompt
llm_codeCode generationprompt, language
llm_structuredStructured JSONprompt, schema