# com.suibari.nagi.createEmojiGeneration

> Published by [suibari.com](https://lexicon.garden/identity/did:plc:uixgxpiqf4i63p6rgpu7ytmx)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:uixgxpiqf4i63p6rgpu7ytmx/com.suibari.nagi.createEmojiGeneration)
- [Documentation](https://lexicon.garden/lexicon/did:plc:uixgxpiqf4i63p6rgpu7ytmx/com.suibari.nagi.createEmojiGeneration/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:uixgxpiqf4i63p6rgpu7ytmx/com.suibari.nagi.createEmojiGeneration/examples)

## Definitions

### `com.suibari.nagi.createEmojiGeneration`

**Type**: `procedure`

絵文字の生成を依頼する。プロンプトを1つ書くだけで、botたんが文字か絵かを読み取って候補を描く。候補は1枚ずつ描かれ、終わると通知が届く。未完了の依頼は1人1件まで。要認証。

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `prompt` | `string` | Yes | 何を描くか。「それな」のような短い言葉は文字の絵文字になる。 |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `estimatedWaitSeconds` | `integer` | Yes | 待ちの目安（秒）。前に並んでいる依頼の数から見積もる。 |
| `generation` | `unknown` | Yes | EmojiGenerationView。 |

#### Errors

- **AuthRequired**
- **already_active**: 未完了の依頼がすでにある。
- **inappropriate**: 入力がモデレーションで弾かれた。
- **busy**: 待ちが一杯、または GPU の自動回復が止まっている。
- **not_configured**

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "絵文字の生成を依頼する。プロンプトを1つ書くだけで、botたんが文字か絵かを読み取って候補を描く。候補は1枚ずつ描かれ、終わると通知が届く。未完了の依頼は1人1件まで。要認証。",
      "errors": [
        {
          "name": "AuthRequired"
        },
        {
          "description": "未完了の依頼がすでにある。",
          "name": "already_active"
        },
        {
          "description": "入力がモデレーションで弾かれた。",
          "name": "inappropriate"
        },
        {
          "description": "待ちが一杯、または GPU の自動回復が止まっている。",
          "name": "busy"
        },
        {
          "name": "not_configured"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "prompt": {
              "description": "何を描くか。「それな」のような短い言葉は文字の絵文字になる。",
              "maxGraphemes": 100,
              "type": "string"
            }
          },
          "required": [
            "prompt"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "estimatedWaitSeconds": {
              "description": "待ちの目安（秒）。前に並んでいる依頼の数から見積もる。",
              "type": "integer"
            },
            "generation": {
              "description": "EmojiGenerationView。",
              "type": "unknown"
            }
          },
          "required": [
            "generation",
            "estimatedWaitSeconds"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "com.suibari.nagi.createEmojiGeneration",
  "lexicon": 1
}
```
