# Evo 2, generate
Generate DNA continuations from prompts with Evo 2.
- Job type: `EVO2_GENERATE`
- Task: Sequence design
- Price: 1 credit a run
- Behavior and limits: DNA prompts in, sampled DNA out (generations.json). 7B checkpoints via params.model.
- Source: Arc Institute (https://github.com/ArcInstitute/evo2)
- Paper: Brixi et al., Genome modeling and design across all domains of life with Evo 2. bioRxiv 2025. doi:10.1101/2025.02.18.638918

## Example

### CLI

```bash
phi jobs submit EVO2_GENERATE \
  --input prompts=AGAGCGTCGGGATATCGGGTGGCGGCTCGGGACGGAGGACGCGCTAGTGTGAGTGCGGGC \
  --param model=7b \
  --param n_tokens=500 \
  --param temperature=1 \
  --param top_k=4 \
  --wait --out out
```

### Python

```python
from phi import PhiClient

with PhiClient() as phi:
    job = phi.jobs.submit(
        "EVO2_GENERATE",
        inputs={
        "prompts": [
                "AGAGCGTCGGGATATCGGGTGGCGGCTCGGGACGGAGGACGCGCTAGTGTGAGTGCGGGC"
        ]
        },
        params={
        "model": "7b",
        "n_tokens": 500,
        "temperature": 1,
        "top_k": 4
        },
    )
    print(phi.jobs.wait(job.job_id).status)
```

### HTTP

```bash
curl -X POST https://api.dynophi.com/v1/jobs \
  -H "x-api-key: $PHI_KEY" -H "content-type: application/json" \
  -d '{
  "job_type": "EVO2_GENERATE",
  "inputs": {
    "prompts": [
      "AGAGCGTCGGGATATCGGGTGGCGGCTCGGGACGGAGGACGCGCTAGTGTGAGTGCGGGC"
    ]
  },
  "params": {
    "model": "7b",
    "n_tokens": 500,
    "temperature": 1,
    "top_k": 4
  }
}'
```

## Parameters

| Name | Type | Default | Description |
|---|---|---|---|
| `gpu` | string one of a100, t4, a100_80gb, h100, a100_or_h100, a100_80gb_or_h100, a100_preferred, h100_preferred | `null` | Per-job GPU class override. |
| `model` (essential) | string one of 7b, 7b_base, 7b_262k | `"7b"` | Evo 2 7B checkpoint: '7b' (1M context), '7b_base' (8k), '7b_262k' (262k). |
| `n_tokens` (essential) | integer | `500` | Number of nucleotides to generate per sample. |
| `temperature` (essential) | number | `1` | Sampling temperature. |
| `top_k` (essential) | integer | `4` | Top-k sampling cutoff. |
| `top_p` | number | `1` | Nucleus (top-p) sampling cutoff. |
| `num_samples` | integer | `1` | Independent samples to generate per prompt. |
| `seed` | integer | `null` | Random seed for reproducible sampling. |

## Inputs

| Name | Type | Default | Description |
|---|---|---|---|
| `prompts` (essential) | list of string | EVO2PromptInput |  | DNA prompts to continue (bare strings or objects). |

---
Source: https://dynophi.com/docs/models/EVO2_GENERATE. From the live API schema and phi-api's model catalog, 2026-11-23.